/* Login Page - Uses CSS variables from customTheme.css */

* {
    font-family: 'Poppins', sans-serif;
}

body {
    /* Full multi-stop theme gradient (dark slate → teals → cyan → amber → gold)
       layered under a darkening overlay so the card still pops. */
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        var(--theme-gradient-full);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

/* Navbar takes its natural height at the top; nothing else needed. */

.login-container {
    width: 100%;
    max-width: 880px;
    align-self: center;   /* horizontally center this column-flex child */
    margin: auto;         /* fills remaining vertical space, vertically centering the card */
    padding: 20px;        /* breathing room (previously on body) */
    box-sizing: border-box;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    display: flex;
    align-items: stretch;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left column: branding + disclaimer + request access */
.login-info {
    flex: 1 1 50%;
    background: var(--theme-gradient-header);
    color: white;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .login-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
        opacity: 0.1;
        pointer-events: none;
    }

    .login-info h1 {
        margin: 0 0 16px 0;
        font-size: 30px;
        font-weight: 700;
        position: relative;
    }

    .login-info .login-disclaimer-lead {
        margin: 0 0 10px 0;
        font-size: 16px;
        font-weight: 600;
        position: relative;
    }

    .login-info .login-disclaimer {
        margin: 0 0 24px 0;
        font-size: 14px;
        font-weight: 300;
        line-height: 1.55;
        opacity: 0.95;
        position: relative;
    }

    .login-info .request-access-btn {
        align-self: flex-start;
        background: rgba(255, 255, 255, 0.15);
        border: 1.5px solid rgba(255, 255, 255, 0.7);
        color: white;
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.25s ease;
        position: relative;
    }

        .login-info .request-access-btn:hover {
            background: white;
            color: var(--theme-primary);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }

/* Right column: login form */
.login-body {
    flex: 1 1 50%;
    padding: 36px 36px 28px;
}

    /* Style labels */
    .login-body label {
        font-weight: 500;
        color: #333;
        margin-bottom: 6px;
        display: block;
        font-size: 13px;
    }

    /* Style all input fields */
    .login-body input[type="text"],
    .login-body input[type="password"],
    .login-body input[type="email"],
    .login-body .form-control {
        border-radius: 10px;
        border: 2px solid var(--theme-border);
        padding: 11px 16px;
        font-size: 14px;
        width: 100%;
        transition: all 0.3s ease;
        font-weight: 400;
        background: #fafafa;
    }

        .login-body input[type="text"]:focus,
        .login-body input[type="password"]:focus,
        .login-body input[type="email"]:focus,
        .login-body .form-control:focus {
            border-color: var(--theme-secondary);
            outline: none;
            box-shadow: 0 0 0 4px var(--theme-focus-ring);
            background: white;
        }

    /* Style checkboxes */
    .login-body input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        cursor: pointer;
    }


    .login-body .remember-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
    }

    .login-body .form-check {
        margin-bottom: 0;
    }

    .login-body .forgot-password-link {
        font-size: 13px;
        white-space: nowrap;
    }


    /* Style submit buttons */
    .login-body button[type="submit"],
    .login-body input[type="submit"],
    .login-body .btn-primary {
        background: var(--theme-gradient-button);
        border: none;
        border-radius: 10px;
        color: white;
        padding: 13px;
        font-size: 15px;
        font-weight: 600;
        width: 100%;
        transition: all 0.3s ease;
        cursor: pointer;
        margin-top: 4px;
    }

        .login-body button[type="submit"]:hover,
        .login-body input[type="submit"]:hover,
        .login-body .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px var(--theme-shadow-hover);
        }

        .login-body button[type="submit"]:active,
        .login-body input[type="submit"]:active,
        .login-body .btn-primary:active {
            transform: translateY(0);
        }

    /* Style form groups for spacing */
    .login-body .form-group,
    .login-body .mb-3 {
        margin-bottom: 16px;
    }

    /* Style validation messages */
    .login-body .text-danger,
    .login-body .field-validation-error {
        color: #dc3545;
        font-size: 13px;
        margin-top: 6px;
        display: block;
    }

    .login-body .alert {
        border-radius: 10px;
        border: none;
        margin-bottom: 16px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .login-body .alert-danger {
        background: #fee;
        color: #c33;
    }

    .login-body .alert-success {
        background: #efe;
        color: #3c3;
    }

    /* Links styling */
    .login-body a {
        color: var(--theme-secondary);
        text-decoration: none;
        transition: color 0.2s ease;
        font-weight: 500;
    }

        .login-body a:hover {
            color: var(--theme-primary);
        }

.back-link {
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

    .back-link a {
        color: var(--theme-text-muted);
        font-size: 13px;
        font-weight: 400;
    }

        .back-link a:hover {
            color: var(--theme-secondary);
        }

/* Stack columns on narrow viewports */
@media (max-width: 768px) {
    .login-container {
        max-width: 450px;
    }

    .login-card {
        flex-direction: column;
    }

    .login-info {
        padding: 36px 30px 30px;
        text-align: center;
        align-items: center;
    }

        .login-info h1 {
            font-size: 28px;
        }

        .login-info .request-access-btn {
            align-self: center;
        }

    .login-body {
        padding: 30px 25px 24px;
    }
}
