
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-logo {
    margin-top: 60px;
    text-align: center;
    width: 100%;
}

    .login-logo img {
        height: auto;
    }

.login-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 100%;
    max-width: 375px;
    padding: 40px 32px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
}

.login-header {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 32px 0;
    padding: 0;
    border: none;
    color: #333;
}

.form-group {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.form-control-modern {
    width: 100%;
    padding: 12px 12px 12px 40px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

    .form-control-modern:focus {
        outline: none;
        border-color: #4A90E2;
        box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
    }

    .form-control-modern:disabled {
        background-color: #f5f5f5;
        color: #999;
        cursor: not-allowed;
    }

    .form-control-modern::placeholder {
        color: #999;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
}

    .password-toggle:hover svg path {
        fill: #666;
    }

.btn-modern {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #000;
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background-color: #333;
    }

    .btn-primary:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.form-actions {
    margin-bottom: 16px;
}

.forgot-password-wrapper {
    text-align: left;
}
.form-footer {
    text-align: right;
}

.link-forgot {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.5px;
}

    .link-forgot:hover {
        text-decoration: underline;
    }

.validationError {
    display: block;
    color: #d32f2f;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.login-footer {
    margin-top: 32px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

    .login-footer a {
        color: #4A90E2;
        text-decoration: none;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

/* Loading overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Legacy styles for redirect */
.login {
    border: 2px solid #10092A;
    min-width: 500px;
}

.redirect-login {
    padding: 35px 120px;
}

.forgot-password-wrapper{
    margin-top: 5px;
}
/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .login {
        min-width: 90vw;
    }
}
