/* ==========================================
   FRC NIGERIA - SMART RECEPTION MANAGEMENT
   LOGIN PAGE STYLES (login.css)
   ========================================== */

:root {
    --frc-deep-green: #005A32;
    --frc-dark-green: #004B2A;
    --frc-green: #007A3D;
    --frc-light-green: #78BE20;
    --frc-white: #FFFFFF;
    --frc-text-dark: #13263D;
    --frc-text-muted: #58677B;
    --frc-footer-muted: #607086;
    --frc-border-color: #D7DEE7;
    --frc-input-bg: #FFFFFF;
    --frc-input-focus-border: #007A3D;
    --frc-input-focus-shadow: rgba(0, 122, 61, 0.12);
    --frc-font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --frc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--frc-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-page-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #004B2A;
    background-image: url('../images/frc_reception_bg.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* Background overlay for right hero image contrast */
.login-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(0,75,42,0.88) 0%, rgba(0,75,42,0.25) 45%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Green Brand Panel (Left 42% Width on Desktop) */
.brand-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 42%;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px 60px 65px;
    background: linear-gradient(145deg, #004B2A 0%, #005A32 65%, #00381F 100%);
    overflow: hidden;
    clip-path: ellipse(125% 125% at 15% 50%);
    box-shadow: 12px 0 35px rgba(0,0,0,0.25);
}

/* Decorative curved green concentric shapes inside Left Panel */
.brand-panel-shape-1 {
    position: absolute;
    bottom: -160px;
    left: -110px;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 190, 32, 0.38) 0%, rgba(0, 122, 61, 0.16) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.brand-panel-shape-2 {
    position: absolute;
    bottom: -230px;
    left: -60px;
    width: 680px;
    height: 480px;
    border-radius: 45%;
    border: 38px solid rgba(120, 190, 32, 0.24);
    transform: rotate(-20deg);
    pointer-events: none;
    z-index: 1;
}

/* Nigerian Coat of Arms Watermark at Top Left */
.brand-watermark {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 220px;
    height: 220px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

/* Brand Panel Typography */
.brand-content {
    position: relative;
    z-index: 2;
    color: var(--frc-white);
    max-width: 380px;
}

.brand-subtitle-top {
    font-family: var(--frc-font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.brand-title {
    font-family: var(--frc-font-heading);
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.12;
    color: #FFFFFF;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.brand-accent-line {
    width: 55px;
    height: 4px;
    background-color: var(--frc-light-green);
    border-radius: 2px;
    margin-bottom: 25px;
}

.brand-tagline-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-tagline-list li {
    font-family: var(--frc-font-body);
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
}

/* Centered Login Area (sits over the entire viewport with card centered in viewport) */
.login-area {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center; /* Centered in Viewport */
    padding: 40px 20px;
}

/* Main Login Card */
.login-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.22);
    padding: 48px 48px 36px 48px;
    z-index: 10;
}

.login-card-logo-wrapper {
    text-align: center;
    margin-bottom: 18px;
}

.login-card-logo {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.login-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-card-title {
    font-family: var(--frc-font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--frc-deep-green);
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
}

.login-card-subtitle {
    font-family: var(--frc-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--frc-text-muted);
    margin: 0 0 18px 0;
    letter-spacing: 0.2px;
}

.title-accent-line {
    width: 45px;
    height: 4px;
    background-color: var(--frc-light-green);
    border-radius: 2px;
    margin: 0 auto;
}

/* Form Controls */
.login-form {
    margin-top: 22px;
}

.form-group {
    margin-bottom: 22px;
}

.form-label-custom {
    display: block;
    font-family: var(--frc-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--frc-text-dark);
    margin-bottom: 8px;
}

.input-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    background-color: var(--frc-input-bg);
    border: 1px solid var(--frc-border-color);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.input-field-wrapper:focus-within {
    border-color: var(--frc-input-focus-border);
    box-shadow: 0 0 0 3px var(--frc-input-focus-shadow);
}

.input-icon-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 100%;
    color: var(--frc-deep-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.input-custom {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 15px 0 0;
    font-family: var(--frc-font-body);
    font-size: 1rem;
    color: var(--frc-text-dark);
    font-weight: 500;
    outline: none;
    box-shadow: none !important;
}

.input-custom::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* Password Toggle Button */
.password-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--frc-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    margin-right: 4px;
}

.password-toggle-btn:hover {
    color: var(--frc-deep-green);
}

.password-toggle-btn:focus {
    outline: 2px solid var(--frc-green);
    border-radius: 6px;
}

/* Sign In Submit Button */
.login-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #005A32 0%, #007A3D 100%);
    border: none;
    border-radius: 12px;
    font-family: var(--frc-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--frc-white);
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 90, 50, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 10px;
    margin-bottom: 22px;
}

.login-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 90, 50, 0.38);
    background: linear-gradient(90deg, #004B2A 0%, #006C35 100%);
}

.login-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 90, 50, 0.2);
}

.login-btn-icon {
    font-size: 1.4rem;
}

/* Card Divider / Footer Line */
.card-divider-line {
    width: 40px;
    height: 3px;
    background-color: var(--frc-light-green);
    border-radius: 2px;
    margin: 0 auto 16px auto;
}

.login-card-footer {
    text-align: center;
    font-family: var(--frc-font-body);
    font-size: 0.85rem;
    color: var(--frc-footer-muted);
    margin: 0;
}

/* Flash Messages */
.alert-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.alert-custom-danger {
    background-color: #FFF4F4;
    border: 1px solid #F1B9B9;
    color: #9D1C1C;
}

.alert-custom-success {
    background-color: #F0FFF4;
    border: 1px solid #C6F6D5;
    color: #22543D;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Large Tablets & Laptops (max-width: 1180px) */
@media (max-width: 1180px) {
    .brand-panel {
        width: 38%;
        min-width: 340px;
        padding: 40px 25px 40px 35px;
    }
    .brand-title {
        font-size: 2.2rem;
    }
    .login-card {
        max-width: 520px;
        padding: 38px 36px 32px 36px;
    }
}

/* Mobile & Tablets (max-width: 880px) */
@media (max-width: 880px) {
    .login-page-container {
        flex-direction: column;
        justify-content: center;
        background-position: center center;
    }
    
    .login-page-container::before {
        background: linear-gradient(180deg, rgba(0,75,42,0.92) 0%, rgba(0,45,25,0.95) 100%);
    }

    .brand-panel {
        display: none;
    }

    .login-area {
        width: 100%;
        padding: 20px 15px;
    }

    .login-card {
        width: calc(100% - 30px);
        max-width: 460px;
        padding: 30px 22px 25px 22px;
        border-radius: 18px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .login-card-logo {
        max-width: 140px;
    }

    .login-card-title {
        font-size: 1.6rem;
    }

    .login-card-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .input-field-wrapper {
        height: 52px;
    }

    .login-btn-submit {
        height: 56px;
        font-size: 1.15rem;
    }

    .input-custom {
        font-size: 16px;
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .login-card {
        width: calc(100% - 20px);
        padding: 24px 18px 20px 18px;
    }

    .login-card-logo {
        max-width: 120px;
    }

    .login-card-title {
        font-size: 1.4rem;
    }

    .login-card-subtitle {
        font-size: 0.8rem;
    }

    .form-group {
        margin-bottom: 16px;
    }
}

/* Short height screens */
@media (max-height: 700px) and (max-width: 880px) {
    .login-card {
        padding: 20px 18px 16px 18px;
    }

    .login-card-logo-wrapper {
        margin-bottom: 8px;
    }

    .login-card-logo {
        max-width: 110px;
    }

    .login-card-header {
        margin-bottom: 15px;
    }

    .login-card-title {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }

    .form-group {
        margin-bottom: 14px;
    }
}
