﻿/* ==========================================
   LOGIN PAGE – styles apply ONLY to login page
   ========================================== */

/* The BODY gets the gradient background */
body.login-page {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(circle at top left, #0f5ff3 0%, #021427 45%, #000814 100%);
    overflow-x: hidden;
}

/* The wrapper that holds the login card */
.login-page {
    width: 100vw;
    max-width: 100vw;
    min-height: calc(100vh - 80px); /* subtract header height */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 140px; /* spacing BELOW the logo bar */
    padding-bottom: 40px;
}

/* Inner container to control max width */
.login-page-inner {
    width: 100%;
    max-width: 1100px;
    padding: 0 24px;
}

/* ==========================================
   LOGIN CARD LAYOUT
   ========================================== */

.login-card {
    display: grid;
    grid-template-columns: 0.65fr 1fr; /* much better balance */
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 18px 45px rgba(0,0,0,0.30);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   LEFT HERO PANEL
   ========================================== */

.login-hero {
    background: linear-gradient(145deg, #0052cc 0%, #3965ff 40%, #7b3eff 100%);
    color: #ffffff;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 520px;
}

.login-badge {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.login-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-hero-text {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 340px;
}

.login-hero-list {
    margin-top: 2rem;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

    .login-hero-list li {
        padding-left: 1.5rem;
        margin-bottom: 0.65rem;
        position: relative;
    }

        .login-hero-list li::before {
            content: "•";
            position: absolute;
            left: 0;
            top: -2px;
            font-size: 1.4rem;
            opacity: 0.9;
        }

/* ==========================================
   RIGHT FORM PANEL
   ========================================== */

.login-form-panel {
    background-color: #ffffff;
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* Form Inputs */
.login-form .login-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a4f58;
}

.login-form .login-input {
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    border: 1px solid #dde1ea;
}

    .login-form .login-input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.20);
    }

/* Remember Me */
.login-remember-label {
    font-size: 0.85rem;
    color: #4a4f58;
}

/* Smaller Links */
.login-link-small {
    font-size: 0.85rem;
    text-decoration: none;
}

    .login-link-small:hover {
        text-decoration: underline;
    }

/* Login Button */
.login-button {
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

/* Footer Links */
.login-links {
    font-size: 0.85rem;
}

    .login-links a {
        text-decoration: none;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

/* ==========================================
   EXTERNAL PROVIDERS (Google, Microsoft, etc.)
   ========================================== */

.login-external {
    margin-top: 1.75rem;
}

.login-divider {
    text-align: center;
    font-size: 0.8rem;
    color: #8a8f99;
    margin-bottom: 1rem;
    position: relative;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 35%;
        height: 1px;
        background-color: #e3e6ee;
    }

    .login-divider::before {
        left: 0;
    }

    .login-divider::after {
        right: 0;
    }

.login-external-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Validation Summary Clean Look */
.login-validation {
    margin-bottom: 1rem;
}

/* ==========================================
   RESPONSIVE BEHAVIOR
   ========================================== */

@media (max-width: 992px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-hero {
        display: none; /* hide hero panel on small screens */
    }

    .login-form-panel {
        padding: 2rem 1.75rem;
    }

    .login-page {
        padding-top: 100px;
        padding-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .login-form-panel {
        padding: 1.75rem 1.25rem;
    }
}

/* Make sure the logo bar touches the very left & top edges on login page */
html,
body.login-page {
    margin: 0;
    padding: 0;
}

/* Improve spacing on the RIGHT side of the logo */
body.login-page .login-shell-header .container {
    display: flex;
    align-items: center;
    padding-left: 0; /* keep flush left */
    padding-right: 24px; /* add breathing room to the right */
}

body.login-page .login-shell-logo {
    margin-right: 16px; /* optional small space after logo */
}