/* ==========================================================================
   FLUNGO - MODERN AUTHENTICATION STYLES (LOGIN, REGISTER, FORGOT PASSWORD)
   ========================================================================== */

/* --- Global Body Fix for Horizontal Overflow --- */
html,
body {
    overflow-x: hidden;
}

/* --- Desktop Transparent Seamless Navbar on Auth Pages (Scroll to Top) --- */
@media (min-width: 851px) {
    .navigation-bar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        background-color: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: none !important;
        transition: background-color 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
    }

    /* Nav elements adaptation when transparent on top of dark auth background */
    .navigation-bar:not(.is-scrolled) .nav-logo img {
        filter: brightness(0) invert(1);
        transition: filter 0.32s ease;
    }

    .navigation-bar:not(.is-scrolled) .nav-menus {
        background-color: rgba(255, 255, 255, 0.18) !important;
        border-color: rgba(255, 255, 255, 0.32) !important;
        /* Important: Do not use backdrop-filter here to avoid breaking containing block for .nav-submenu */
        transition: background-color 0.32s ease, border-color 0.32s ease;
    }

    .navigation-bar:not(.is-scrolled) .nav-menu > h4 {
        color: #ffffff !important;
    }

    .navigation-bar:not(.is-scrolled) .nav-menu > ion-icon {
        color: #ffffff !important;
    }

    /* Only turn the direct top-level menu icon white, NEVER the dropdown icons */
    .navigation-bar:not(.is-scrolled) .nav-menu > img {
        filter: brightness(0) invert(1);
    }
}

/* Ensure mega-menu dropdown stays perfectly centered, on top, and preserves original icon & heading colors */
.navigation-bar .nav-submenu,
.navigation-bar:not(.is-scrolled) .nav-submenu,
.nav-submenu {
    z-index: 3000 !important;
    color: #0f172a !important;
}

.navigation-bar .nav-submenu .submenu-left h4,
.navigation-bar .nav-submenu .submenu-left--special h4,
.navigation-bar:not(.is-scrolled) .nav-submenu .submenu-left h4,
.navigation-bar:not(.is-scrolled) .nav-submenu .submenu-left--special h4,
.nav-submenu .submenu-left h4,
.nav-submenu .submenu-left--special h4,
.nav-submenu .submenu-title h3,
.nav-submenu h4,
.nav-submenu .submenu-section-title {
    color: #154ea1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navigation-bar .nav-submenu .submenu-left p,
.navigation-bar:not(.is-scrolled) .nav-submenu .submenu-left p,
.nav-submenu .submenu-left p {
    color: #64748b !important;
}

.navigation-bar .nav-submenu .submenu-item-info h5,
.navigation-bar:not(.is-scrolled) .nav-submenu .submenu-item-info h5,
.nav-submenu .submenu-item-info h5 {
    color: #0f172a !important;
}

.navigation-bar .nav-submenu .submenu-item-info p,
.navigation-bar:not(.is-scrolled) .nav-submenu .submenu-item-info p,
.nav-submenu .submenu-item-info p {
    color: #64748b !important;
}

.navigation-bar .nav-submenu img,
.navigation-bar:not(.is-scrolled) .nav-submenu img,
.nav-submenu img,
.submenu-item-icon img,
.mobile-panel-item img {
    filter: none !important;
}

/* Transition to solid white when scrolled down on desktop */
@media (min-width: 851px) {
    .navigation-bar.is-scrolled {
        background-color: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
        box-shadow: 0 8px 24px rgba(15, 58, 122, 0.08) !important;
    }

    .navigation-bar.is-scrolled .nav-logo img {
        filter: none;
    }
}

/* --- Mobile Navbar & Drawer on Auth Pages (<= 850px, <= 414px, <= 360px) --- */
/* Match http://localhost:8000/ exactly: Solid white navbar & full screen drawer */
@media (max-width: 850px) {
    .navigation-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 2000 !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #f0f0f0 !important;
        box-shadow: 0 4px 16px rgba(15, 58, 122, 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .navigation-bar .nav-logo img,
    .navigation-bar:not(.is-scrolled) .nav-logo img {
        filter: none !important;
    }

    .navigation-bar .nav-mobile-toggle,
    .navigation-bar:not(.is-scrolled) .nav-mobile-toggle {
        color: #111111 !important;
        background: transparent !important;
        border: none !important;
    }

    .navigation-bar .nav-mobile-toggle ion-icon,
    .navigation-bar:not(.is-scrolled) .nav-mobile-toggle ion-icon {
        color: #111111 !important;
    }

    /* Fullscreen Mobile Drawer Panel matching http://localhost:8000/ */
    .nav-mobile-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        background-color: #ffffff !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-mobile-panel.is-open {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .nav-mobile-card {
        background-color: #ffffff !important;
        min-height: 100vh !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    .nav-mobile-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 14px 8px !important;
    }

    .nav-mobile-logo img {
        filter: none !important;
        width: 92px !important;
        display: block !important;
    }

    .nav-mobile-close {
        color: #111111 !important;
    }

    .nav-mobile-close ion-icon {
        color: #111111 !important;
    }

    .nav-mobile-group-toggle {
        color: #111111 !important;
    }

    .nav-mobile-group-toggle span {
        color: #111111 !important;
    }

    .nav-mobile-group-toggle ion-icon {
        color: #111111 !important;
    }

    .nav-mobile-login {
        display: block !important;
        background: #154ea1 !important;
        color: #ffffff !important;
    }
}

/* --- Auth Wrapper & Ambient Background --- */
.auth-page-section {
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 20px 70px;
    background-image: url('../assets-user/assets/img/login-modern-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: visible;
}

/* Distinct Register Page Background */
.auth-page-section.register-section {
    background-image: url('../assets-user/assets/img/register-modern-bg.jpg');
}

.auth-page-section.register-section .auth-backdrop-overlay {
    background: radial-gradient(circle at 50% 25%, rgba(18, 68, 145, 0.40) 0%, rgba(7, 22, 48, 0.74) 60%, rgba(3, 11, 26, 0.90) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Distinct Forgot Password Page Background */
.auth-page-section.forgot-section {
    background-image: url('../assets-user/assets/img/forgot-modern-bg.jpg');
}

.auth-page-section.forgot-section .auth-backdrop-overlay {
    background: radial-gradient(circle at 50% 30%, rgba(20, 60, 135, 0.42) 0%, rgba(6, 18, 42, 0.78) 60%, rgba(3, 10, 24, 0.92) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Deep cinematic sapphire overlay with contained blur orbs */
.auth-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(15, 52, 115, 0.45) 0%, rgba(8, 20, 44, 0.72) 60%, rgba(4, 12, 28, 0.88) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Ambient glow orbs contained inside the backdrop overlay so they NEVER cause scrollbars */
.auth-backdrop-overlay::before,
.auth-backdrop-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.6;
}

.auth-backdrop-overlay::before {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(43, 127, 255, 0.35) 0%, rgba(21, 78, 161, 0) 70%);
    top: -60px;
    right: 10%;
    animation: authOrbFloat 14s ease-in-out infinite alternate;
}

.auth-backdrop-overlay::after {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.35) 0%, rgba(15, 23, 42, 0) 70%);
    bottom: -80px;
    left: 8%;
    animation: authOrbFloat 16s ease-in-out infinite alternate-reverse;
}

@keyframes authOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 25px) scale(1.12); }
}

/* Main Container */
.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 490px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

/* Top Badge & Header */
.auth-header-area {
    width: 100%;
    text-align: center;
    margin-bottom: 22px;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin-bottom: 14px;
}

.auth-brand-badge i {
    color: #60a5fa;
    font-size: 14px;
}

.auth-page-title {
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.auth-page-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 400px;
}

/* --- Auth Glass Card --- */
.auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 34px 34px;
    box-shadow: 
        0 24px 60px -12px rgba(4, 18, 48, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card-top {
    margin-bottom: 20px;
    text-align: left;
}

.auth-card-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.auth-card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(21, 78, 161, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #154ea1;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-card-title {
    color: #0f2445;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0;
}

.auth-card-desc {
    color: #64748b;
    font-size: 14px;
    font-weight: 450;
    margin: 0;
    line-height: 1.5;
}

/* --- Form Elements --- */
.auth-field-group {
    margin-bottom: 16px;
    position: relative;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.auth-label {
    display: inline-block;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -0.1px;
    margin-bottom: 8px;
}

.auth-label-row .auth-label {
    margin-bottom: 0;
}

.auth-forgot-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.auth-forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Modern Input Box with Integrated Prefix Icon */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 3;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 12px 16px 12px 46px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 14px;
}

.auth-input:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.auth-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: #2563eb;
}

/* Password field with eye toggle */
.auth-input-password {
    padding-right: 50px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    z-index: 3;
}

.auth-password-toggle:hover {
    color: #1e293b;
    background-color: rgba(226, 232, 240, 0.6);
}

/* Error States */
.auth-input.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fffafb !important;
}

.auth-input-wrapper:focus-within .auth-input.is-invalid + .auth-input-icon,
.auth-input.is-invalid ~ .auth-input-icon {
    color: #ef4444;
}

.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

.auth-error-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.4;
}

.auth-error-msg i {
    font-size: 13px;
    flex-shrink: 0;
}

/* --- Submit Button --- */
.auth-submit-btn {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #154ea1 0%, #1e5fd6 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 10px 24px -6px rgba(21, 78, 161, 0.42);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 6px;
}

.auth-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0e3f84 0%, #1852bc 100%);
    box-shadow: 0 14px 28px -4px rgba(21, 78, 161, 0.52);
    transform: translateY(-2px);
    color: #ffffff;
}

.auth-submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 6px 16px -4px rgba(21, 78, 161, 0.35);
}

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.auth-submit-btn i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.auth-submit-btn:hover:not(:disabled) i {
    transform: translateX(3px);
}

/* --- Divider --- */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 20px;
    color: #94a3b8;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 14px;
    font-size: 13px;
    font-weight: 550;
    color: #64748b;
    text-transform: lowercase;
}

/* --- Google Button --- */
.auth-google-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 650;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.auth-google-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.auth-google-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.auth-google-btn img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* --- Info Note & Back Button for Recovery / Forgot --- */
.auth-info-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 22px;
}

.auth-info-note i {
    color: #2563eb;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1e40af;
    font-weight: 650;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.22s ease;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.auth-back-btn:hover {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    transform: translateX(-3px);
}

.auth-back-btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.auth-back-btn:hover i {
    transform: translateX(-3px);
}

/* --- Auth Card Footer Links --- */
.auth-card-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
    font-weight: 450;
}

.auth-link-bold {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link-bold:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Policy / Disclaimer */
.auth-privacy-notice {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
}

.auth-privacy-notice a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 550;
    transition: color 0.2s ease;
}

.auth-privacy-notice a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (<= 850px, <= 414px, <= 360px)
   ========================================================================== */

/* Tablet & Smaller Screens (<= 850px) */
@media (max-width: 850px) {
    .auth-page-section {
        padding: 95px 20px 40px;
        min-height: 100vh;
    }

    .auth-container {
        max-width: 460px;
    }

    .auth-card {
        padding: 34px 30px;
        border-radius: 24px;
    }

    .auth-page-title {
        font-size: 1.65rem;
    }

    .auth-card-title {
        font-size: 1.5rem;
    }

    .auth-card-icon-box {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .auth-submit-btn,
    .auth-google-btn {
        height: 48px;
    }
}

/* Mobile Screens (<= 414px - iPhone XR/11/12/13/14/15, Galaxy S/A series) */
@media (max-width: 414px) {
    .auth-page-section {
        padding: 85px 14px 30px;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-header-area {
        margin-bottom: 18px;
    }

    .auth-brand-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 10px;
    }

    .auth-page-title {
        font-size: 1.45rem;
        letter-spacing: -0.3px;
    }

    .auth-page-subtitle {
        font-size: 13px;
        padding: 0 4px;
    }

    .auth-card {
        padding: 26px 18px;
        border-radius: 20px;
        box-shadow: 0 16px 40px -10px rgba(4, 18, 48, 0.3);
    }

    .auth-card-top {
        margin-bottom: 20px;
    }

    .auth-card-title {
        font-size: 1.35rem;
    }

    .auth-card-desc {
        font-size: 13px;
    }

    .auth-label {
        font-size: 13px;
    }

    .auth-forgot-link {
        font-size: 12px;
    }

    .auth-input {
        height: 48px;
        font-size: 15px; /* Comfortable legible mobile input */
        padding-left: 42px;
        border-radius: 12px;
    }

    .auth-input-icon {
        left: 14px;
        font-size: 15px;
    }

    .auth-submit-btn {
        height: 48px;
        font-size: 15px;
        border-radius: 12px;
    }

    .auth-google-btn {
        height: 48px;
        font-size: 14px;
        border-radius: 12px;
        gap: 10px;
    }

    .auth-divider {
        margin: 20px 0 16px;
    }

    .auth-divider span {
        font-size: 12px;
        padding: 0 10px;
    }

    .auth-card-footer {
        font-size: 13px;
        margin-top: 20px;
    }

    .auth-privacy-notice {
        font-size: 11.5px;
        margin-top: 18px;
        padding-top: 14px;
    }
}

/* Extra Small Phones (<= 360px - Galaxy Z Flip outer, small devices) */
@media (max-width: 360px) {
    .auth-page-section {
        padding: 78px 10px 24px;
    }

    .auth-card {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .auth-page-title {
        font-size: 1.3rem;
    }

    .auth-card-title {
        font-size: 1.25rem;
    }

    .auth-card-icon-box {
        width: 36px;
        height: 36px;
        font-size: 15px;
        border-radius: 10px;
    }

    .auth-input {
        height: 46px;
        font-size: 14px;
        padding-left: 38px;
        padding-right: 42px;
    }

    .auth-input-icon {
        left: 12px;
        font-size: 14px;
    }

    .auth-password-toggle {
        right: 6px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .auth-submit-btn,
    .auth-google-btn {
        height: 46px;
        font-size: 14px;
        border-radius: 11px;
    }

    .auth-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .auth-forgot-link {
        align-self: flex-end;
        margin-top: -18px;
    }
}

/* ==========================================================================
   FLUNGO - MODERN LOGIN V2 REDESIGN (IMAGE 1 & 2 SPECIFICATION)
   ========================================================================== */

/* Page Section (Classic Cinematic Dark Sapphire Background) */
.login-v2-section {
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 20px 70px;
    background-image: url('../assets-user/assets/img/login-modern-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: visible;
}

/* Main Container */
.login-v2-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: 12px auto 0;
}

/* Elevated White Card */
.login-v2-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 38px 36px 32px;
    box-shadow: 
        0 24px 60px -12px rgba(4, 18, 48, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    box-sizing: border-box;
}

/* Logo */
.login-v2-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.login-v2-logo {
    height: 38px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.login-v2-brand a:hover .login-v2-logo {
    transform: scale(1.03);
}

/* Headings */
.login-v2-title {
    color: #0f2445;
    font-size: 1.55rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.login-v2-subtitle {
    color: #64748b;
    font-size: 14px;
    font-weight: 450;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.45;
}

/* Form Groups */
.login-v2-field-group {
    margin-bottom: 16px;
}

.login-v2-label {
    display: block;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 650;
    margin-bottom: 7px;
    text-align: left;
}

.login-v2-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 500;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.login-v2-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
}

.login-v2-input:hover {
    border-color: #cbd5e1;
}

.login-v2-input:focus {
    outline: none;
    border-color: #154ea1;
    box-shadow: 0 0 0 3.5px rgba(21, 78, 161, 0.12);
}

.login-v2-input.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fffafb !important;
}

.login-v2-input.is-invalid:focus {
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.12) !important;
}

/* Password Field with Eye Toggle */
.login-v2-password-wrap {
    position: relative;
    width: 100%;
}

.login-v2-input-password {
    padding-right: 48px;
}

.login-v2-eye-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.15s ease;
}

.login-v2-eye-toggle:hover {
    color: #475569;
    background-color: #f1f5f9;
}

/* Error Text */
.login-v2-error-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.4;
}

.login-v2-error-text i {
    font-size: 13px;
    flex-shrink: 0;
}

/* Lupa Password (Right Aligned Below Password) */
.login-v2-forgot-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    margin-bottom: 20px;
}

.login-v2-forgot-link {
    color: #154ea1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.login-v2-forgot-link:hover {
    color: #0d3b80;
    text-decoration: underline;
}

/* Primary CTA Button "Masuk" */
.login-v2-btn-primary {
    width: 100%;
    height: 50px;
    background: #154ea1;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -4px rgba(21, 78, 161, 0.38);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-v2-btn-primary:hover:not(:disabled) {
    background: #0e3f84;
    box-shadow: 0 12px 24px -4px rgba(21, 78, 161, 0.48);
    transform: translateY(-1.5px);
    color: #ffffff;
}

.login-v2-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 12px -2px rgba(21, 78, 161, 0.3);
}

.login-v2-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Divider "atau" */
.login-v2-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 18px;
    color: #94a3b8;
}

.login-v2-divider::before,
.login-v2-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #e2e8f0;
}

.login-v2-divider span {
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 550;
    color: #64748b;
    text-transform: lowercase;
}

/* Google OAuth Button */
.login-v2-btn-google {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 10px;
}

.login-v2-btn-google:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.login-v2-btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.login-v2-google-icon {
    flex-shrink: 0;
}

/* Secondary Button "Buat akun baru" */
.login-v2-btn-secondary {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: #154ea1;
    font-size: 14.5px;
    font-weight: 650;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-v2-btn-secondary:hover {
    background-color: #dbeafe;
    color: #0e3d82;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.login-v2-btn-secondary:active {
    transform: translateY(0);
}

/* Legal Disclaimer */
.login-v2-legal {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
    margin: 22px auto 0;
    max-width: 340px;
}

.login-v2-legal a {
    color: #154ea1;
    font-weight: 550;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.login-v2-legal a:hover {
    color: #0e3d82;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .login-v2-section {
        padding: 85px 16px 40px;
    }

    .login-v2-container {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .login-v2-card {
        padding: 30px 22px 26px;
        border-radius: 22px;
    }

    .login-v2-logo {
        height: 32px;
        max-width: 145px;
    }

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

    .login-v2-subtitle {
        font-size: 13.5px;
        margin-bottom: 20px;
    }

    .login-v2-btn-primary,
    .login-v2-btn-google,
    .login-v2-btn-secondary {
        height: 46px;
        font-size: 14px;
    }
}



