/* ════════════════════════════════════════════════════════
   LOGIN PAGE — Report 30 Design Language (Enhanced)
   Color palette: #0b2a3f · #113a5c · #1f5f8b · #2f88b9
   ════════════════════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', 'Roboto', 'Open Sans', sans-serif;
    overflow: hidden;
}

/* ─── Background ─── */
.background-image {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.25) saturate(0.6) blur(2px);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(17, 58, 92, 0.95) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(47, 136, 185, 0.3), transparent 50%),
        linear-gradient(135deg, rgba(11, 42, 63, 0.92) 0%, rgba(31, 95, 139, 0.8) 50%, rgba(47, 136, 185, 0.65) 100%);
}

/* ─── Floating Shapes (animated) ─── */
.login-shapes {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.login-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(47, 136, 185, 0.08);
    border: 1px solid rgba(189, 220, 255, 0.08);
    animation: loginFloat 20s ease-in-out infinite;
}

.login-shape--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -80px;
    animation-delay: 0s;
}

.login-shape--2 {
    width: 250px;
    height: 250px;
    bottom: -60px;
    left: 10%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.login-shape--3 {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 30%;
    animation-delay: -14s;
    animation-duration: 22s;
    background: rgba(189, 220, 255, 0.05);
}

@keyframes loginFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(30px, -20px) scale(1.05); }
    50%      { transform: translate(-15px, 25px) scale(0.97); }
    75%      { transform: translate(20px, 10px) scale(1.03); }
}

/* ─── Page Layout: Split Screen ─── */
.login-page {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 100vh;
}

/* ─── Left: Branding Panel ─── */
.login-brand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    animation: loginSlideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes loginSlideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.login-brand-inner {
    max-width: 420px;
    color: #fff;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #1d78aa 0%, #2f88b9 100%);
    box-shadow: 0 12px 30px rgba(17, 76, 120, 0.35);
    font-size: 1.5rem;
}

.login-brand-title {
    margin: 0 0 0.35rem;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.login-brand-subtitle {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    color: rgba(189, 220, 255, 0.7);
    font-weight: 400;
}

.login-brand-divider {
    width: 50px;
    height: 3px;
    margin-bottom: 2rem;
    border-radius: 99px;
    background: linear-gradient(90deg, #2f88b9, rgba(47, 136, 185, 0.2));
}

/* Features list */
.login-brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-brand-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-brand-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(189, 220, 255, 0.9);
    font-size: 0.9rem;
}

.login-brand-feature strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.login-brand-feature span {
    font-size: 0.8rem;
    color: rgba(189, 220, 255, 0.55);
}

/* ─── Right: Form Side ─── */
.login-form-side {
    flex: 0 0 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: loginSlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes loginSlideLeft {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ─── Login Card (inspired by boq-filter-card) ─── */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border: 1px solid rgba(219, 230, 238, 0.15);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 24px 50px rgba(11, 42, 63, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ─── Kicker Badge (matches boq-report-kicker) ─── */
.login-kicker {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(189, 220, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ─── Title (matches boq-report-title) ─── */
.login-title {
    margin: 0 0 0.4rem;
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.login-subtitle {
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    font-weight: 400;
}

/* ─── Form ─── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ─── Field (matches boq-filter-field) ─── */
.login-field {
    display: flex;
    flex-direction: column;
}

/* ─── Label (matches boq-filter-label) ─── */
.login-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(189, 220, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-label i {
    font-size: 0.72rem;
    opacity: 0.7;
}

/* ─── Input (matches boq-filter-card .form-control) ─── */
.login-input-wrap {
    position: relative;
}

.login-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 1.15rem;
    border: 1px solid rgba(199, 216, 228, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
}

.login-input:focus {
    outline: none;
    border-color: rgba(47, 136, 185, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(47, 136, 185, 0.12);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

/* Password field with eye button */
.login-input-wrap {
    position: relative !important;
    display: block !important;
    width: 100%;
}

.login-input-wrap .login-input {
    padding-right: 3.5rem;
    width: 100%;
}

.login-eye-btn {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    line-height: 1;
    font-size: 0.9rem;
}

.login-eye-btn i {
    pointer-events: none;
    font-size: 0.9rem;
    line-height: 1;
}

.login-eye-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

/* ─── Submit Button (matches boq-search-btn) ─── */
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 50px;
    margin-top: 0.5rem;
    padding: 0 1.5rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #114c78 0%, #1d78aa 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(17, 76, 120, 0.3);
    transition: all 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(17, 76, 120, 0.4);
    background: linear-gradient(135deg, #0e3f65 0%, #1a6d9c 100%);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(17, 76, 120, 0.25);
}

.login-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.login-btn:hover i {
    transform: translateX(3px);
}

/* ─── Footer ─── */
.login-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
}

/* ─── Autofill Fix ─── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .login-page {
        flex-direction: column;
    }

    .login-brand {
        flex: none;
        padding: 2rem 2rem 1rem;
        text-align: center;
    }

    .login-brand-inner {
        max-width: 100%;
    }

    .login-brand-title {
        font-size: 1.8rem;
    }

    .login-brand-features {
        display: none;
    }

    .login-brand-divider {
        margin: 0 auto 1rem;
    }

    .login-form-side {
        flex: 1;
        padding: 1rem 1.5rem 2rem;
    }

    .login-card {
        max-width: 440px;
    }

    .login-shape--1 { width: 250px; height: 250px; }
    .login-shape--2 { width: 150px; height: 150px; }
    .login-shape--3 { display: none; }
}

@media (max-width: 575.98px) {
    .login-brand {
        padding: 1.5rem 1.25rem 0.75rem;
    }

    .login-brand-badge {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    .login-brand-title {
        font-size: 1.5rem;
    }

    .login-brand-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .login-brand-divider {
        display: none;
    }

    .login-form-side {
        padding: 0.75rem 1rem 1.5rem;
    }

    .login-card {
        padding: 1.75rem 1.5rem;
        border-radius: 20px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-kicker {
        margin-bottom: 1rem;
    }

    .login-subtitle {
        margin-bottom: 1.5rem;
    }
}
