/* === LOGIN/AUTH LAYOUT (Modern Split) === */
.auth-container {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 950px;
    background: transparent;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
    border: none;
}

/* Hero Section */
.auth-hero {
    flex: 1;
    background: linear-gradient(to top, var(--brand-blue) 50%, #0d1b2a 100%);
    background-size: cover;
    background-position: center;
    padding: 60px;
    display: flex;
    align-items: center;
    /* Centered identity vertically */
    justify-content: center;
    position: relative;
    overflow: hidden;
    align-self: stretch;
    margin: 0;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(47, 118, 189, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mobile-auth-logo {
    display: none;
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.mobile-auth-logo img.app-brand-logo {
    max-width: 160px;
    /* Increased for better presence */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.hero-logo {
    max-width: 200px;
    /* Increased for better representation */
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.2));
}

.hero-slogan {
    font-size: 1.4rem;
    color: white;
    font-weight: 800;
    max-width: 450px;
    line-height: 1.3;
    margin-top: 10px;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.auth-hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    width: max-content;
    margin: 0 auto;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.hero-feature i {
    font-size: 1.4rem;
    color: var(--warning);
}

/* Auth Card */
.auth-card {
    flex: 1.25;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    background: white;
    align-self: stretch;
    justify-content: center;
    margin: 0;
    overflow-y: auto;
    max-height: 95vh;
}

.auth-card::-webkit-scrollbar {
    width: 6px;
}

.auth-card::-webkit-scrollbar-track {
    background: transparent;
}

.auth-card::-webkit-scrollbar-thumb {
    background: rgba(47, 118, 189, 0.1);
    border-radius: 10px;
}

.login-header-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.login-welcome-text {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 950;
    /* Ultra-bold for premium feel */
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.auth-tabs {
    display: flex;
    background: var(--bg-input);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 35px;
}

.auth-tab {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 400;
    cursor: pointer;
    background: transparent;
    color: var(--text-light);
    transition: all 0.3s;
}

.auth-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-card .form-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    display: block;
}

.auth-card input,
.auth-card select {
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-main);
    transition: all 0.3s;
    width: 100%;
}

.auth-card input:focus,
.auth-card select:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(47, 118, 189, 0.1);
}

/* Password Eye Integration Fix */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 50px !important;
}

.toggle-pass {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.toggle-pass:hover {
    color: var(--primary);
}

/* Input Group / Prefixes Design Refinement */
.input-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.input-group select {
    padding: 16px 12px !important;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.input-group input {
    flex: 1;
}

.forgot-password-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-card .btn-primary {
    background: var(--primary);
    color: white;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 900;
    /* Matching fields prominence */
    margin-top: 25px;
    border-radius: 18px;
    border: none;
    width: 100%;
    /* DEFINITIVE FIX: Same size as fields */
    box-shadow: 0 10px 20px rgba(47, 118, 189, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(47, 118, 189, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .auth-hero {
        display: none;
    }

    .mobile-auth-logo {
        display: block;
    }

    .auth-wrapper {
        max-width: 380px;
        margin: 15px auto;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .auth-card input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .auth-card select {
        padding: 12px 10px !important;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        border-radius: 20px;
        width: 92%;
    }
}