/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    width: 100%;
    background-color: white;
    position: relative;
    overflow-x: hidden;
}

.input-icon {
    position: unset;
}

/* Logo */
.logo-container {
    padding: 2rem;
    position: relative;
    z-index: 10;
    float: right;
}

.logo {
    height: auto;
    width: 300px;
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.card {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 -8px 16px -6px rgba(0, 0, 0, 0.1), 0 8px 16px -6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    color: #004e6f;
}

.card-content {
    padding: 1.5rem;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #9ca3af;
}

.input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .input::placeholder {
        color: #9ca3af;
        opacity: 0.7;
    }

    .input:focus {
        border-color: #004e6f;
        box-shadow: 0 0 0 2px rgba(0, 78, 111, 0.1);
    }


.button {
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: #004e6f;
    color: white;
    border: none;
    border-radius: 9999px !important;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

    .button:hover {
        background-color: #003a54;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

/* Copyright */
.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
    z-index: 10;
}

    .footer p {
        margin-bottom: 0.25rem;
    }

        .footer p:first-child {
            font-weight: 500;
            color: #004e6f;
        }

/* Decorative elements */
.decorative-element {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    width: 300px;
    height: 300px;
}

.reset {
    color: black;
    font-size: 12px;
}

/* Responsive */
@@media (max-width: 640px) {
    .logo {
        width: 240px;
    }

    .card {
        max-width: 100%;
    }

    .footer {
        font-size: 0.75rem;
    }

    .decorative-element {
        width: 200px;
        height: 200px;
    }
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Optional */
    margin-bottom: 1rem; /* Add spacing if needed */
}

.customerlogo {
    height: 150px; /* shared visual band */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top:5px;
    margin-left:5px;
}

/* key fix */
.customerlogo img {
    max-height: 100%;
    max-width: 350px; /* prevents wide logos dominating */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

#btnLogin.loading {
    position: relative;
    color: transparent; /* Hide text while loading */
    pointer-events: none;
}

#btnLogin.loading::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
