/* Auth Specific Styles */

/* Auth Layout */
.auth-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #F8FAFC; /* Lighter background than standard dashboard */
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-2xl);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    height: 70px;
    z-index: 10;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.auth-header .auth-brand img {
    width: var(--header-logo-width);
    height: auto;
    max-height: var(--header-logo-height);
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.auth-brand-mark {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

.auth-brand-mark::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid var(--color-accent);
    transform: rotate(45deg);
    top: 6px;
    left: 12px;
}

.auth-header-actions {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.auth-header-link {
    color: var(--color-text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Split Screen Content */
.auth-content {
    display: flex;
    flex: 1;
}

.auth-hero {
    flex: 1;
    background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Abstract wave shapes at the bottom of hero */
.auth-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.8) 100%);
    z-index: 1;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.auth-hero h1 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.auth-hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

.auth-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.auth-feature-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-main);
}

.auth-feature-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    position: relative;
}

/* Dotted background pattern */
.auth-form-side::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--color-border) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.5;
    z-index: 0;
}

.auth-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.auth-card.register-card {
    max-width: 800px;
}

/* Bungkus kartu daftar + catatan versi agar menumpuk vertikal (bukan sejajar) */
.register-form-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.auth-card-title {
    font-size: 1.75rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.auth-card-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    font-size: 0.875rem;
}

/* Forms overrides for auth */
.auth-form-group {
    margin-bottom: var(--spacing-lg);
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-text-muted);
}

.auth-input-icon-right {
    position: absolute;
    right: 1rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.auth-input-group .form-control {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    height: 48px;
    background-color: var(--color-surface-soft);
}

.auth-btn-primary {
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: var(--spacing-md);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-xl) 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.auth-divider:not(:empty)::before { margin-right: 1rem; }
.auth-divider:not(:empty)::after { margin-left: 1rem; }

/* Auth Footer Links */
.auth-footer-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.auth-footer-links a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-primary);
    font-weight: 500;
}

.auth-version-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: var(--spacing-lg);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
}

.auth-version-note strong {
    color: var(--color-secondary);
    font-size: 0.82rem;
    font-weight: 800;
}

/* Security Banner */
.auth-security-banner {
    background-color: var(--color-primary-light);
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.auth-security-banner .banner-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.auth-security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.auth-security-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--color-text-main);
}

.auth-security-item i {
    color: var(--color-primary);
}

/* Register Steps */
.auth-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.auth-steps::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--color-border);
    z-index: 1;
}

.auth-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    background-color: var(--color-surface);
    padding: 0 var(--spacing-xs);
}

.auth-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-surface-soft);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.auth-step.active .auth-step-circle {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.auth-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.auth-step.active .auth-step-label {
    color: var(--color-primary);
}

/* Register layout specifically */
.register-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
}

.register-info-card {
    background-color: #FFF7ED; /* Light orange */
    border: 1px solid #FFEDD5;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.register-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.register-info-item {
    display: flex;
    gap: var(--spacing-sm);
}

.register-info-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* Footer */
.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-2xl);
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.auth-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
}

.auth-footer-links-bottom {
    display: flex;
    gap: var(--spacing-lg);
}

.auth-footer-links-bottom a {
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-footer-links-bottom a:hover {
    color: var(--color-primary);
}

.auth-mobile-welcome {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .auth-content {
        flex-direction: column;
    }
    .auth-hero {
        padding: var(--spacing-xl);
    }
    .register-layout {
        grid-template-columns: 1fr;
    }
    .auth-security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    body.auth-layout {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        background: #F8FAFC;
    }

    .auth-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 58px;
        padding: 0 34px;
        background: rgba(255, 255, 255, 0.86);
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        backdrop-filter: blur(14px);
    }

    .auth-header .auth-brand {
        justify-content: flex-start !important;
        width: auto !important;
    }

    .auth-header .auth-brand img {
        width: var(--header-logo-width) !important;
        max-height: var(--header-logo-height) !important;
    }

    .auth-content {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    .auth-hero,
    .auth-form-side {
        min-height: 100vh;
        height: 100vh;
        padding-top: 76px;
        padding-bottom: 22px;
    }

    .auth-hero {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        isolation: isolate;
    }

    .login-page .auth-hero {
        background-image:
            linear-gradient(135deg, rgba(239, 248, 255, 0.94) 0%, rgba(219, 234, 254, 0.76) 44%, rgba(37, 99, 235, 0.42) 100%),
            url('../images/wallpaper01.png');
        background-repeat: no-repeat, no-repeat;
        background-position: center, center right;
        background-size: cover, min(760px, 62vw) auto;
    }

    .register-page .auth-hero {
        background-image:
            linear-gradient(135deg, rgba(240, 249, 255, 0.94) 0%, rgba(224, 242, 254, 0.74) 48%, rgba(14, 165, 233, 0.42) 100%),
            url('../images/wallpaper02.png') !important;
        background-repeat: no-repeat, no-repeat;
        background-position: center, center right;
        background-size: cover, min(760px, 62vw) auto;
    }

    .auth-hero::after {
        display: none;
    }

    .auth-hero-content {
        max-width: 560px;
        margin: 0 auto;
    }

    .auth-hero h1 {
        font-size: clamp(2rem, 2.7vw, 2.6rem);
        line-height: 1.12;
        margin-bottom: 14px;
        color: #08204A;
    }

    .auth-hero p {
        font-size: 1rem;
        margin-bottom: 18px;
        max-width: 520px;
        color: #334155;
    }

    .auth-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 24px;
        text-align: left;
    }

    .auth-features > div {
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 10px;
        align-items: center;
        padding: 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.78);
    }

    .auth-feature-icon {
        grid-row: span 2;
        margin: 0;
    }

    .auth-form-side {
        padding-left: 34px;
        padding-right: 34px;
        background: #FFFFFF;
    }

    .auth-form-side::before,
    .auth-security-banner,
    .auth-footer {
        display: none;
    }

    .auth-card {
        max-width: 460px;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
    }

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

    .auth-card-subtitle {
        margin-bottom: 18px;
    }

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

    .auth-input-group .form-control {
        height: 42px;
    }

    .auth-btn-primary {
        height: 43px;
        margin-top: 8px;
    }

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

    .auth-footer-links {
        gap: 10px;
        flex-wrap: wrap;
    }

    .register-page .auth-hero-content {
        max-width: 520px;
    }

    .register-page .auth-hero h1 {
        font-size: clamp(1.85rem, 2.2vw, 2.25rem) !important;
    }

    .register-page .auth-hero p {
        margin-bottom: 10px;
    }

    .register-page .auth-hero-content > div:last-child {
        gap: 12px !important;
        margin-top: 22px !important;
    }

    .register-page .auth-card.register-card {
        max-width: 760px;
        padding: 18px;
    }

    .register-page .auth-card-title {
        font-size: 1.45rem !important;
        margin-bottom: 2px;
    }

    .register-page .auth-card-subtitle {
        font-size: 0.82rem !important;
        margin-bottom: 12px !important;
    }

    .register-page .auth-steps,
    .register-page .register-layout > div:last-child {
        display: none;
    }

    .register-page .register-layout {
        display: block;
    }

    .register-page .grid-2 {
        gap: 12px;
    }

    .register-page .auth-form-group {
        margin-bottom: 9px;
    }

    .register-page .auth-input-group .form-control,
    .register-page .form-control {
        height: 38px;
        min-height: 38px;
        font-size: 0.82rem;
    }

    .register-page .form-label {
        font-size: 0.78rem !important;
    }

    .register-page .text-muted {
        line-height: 1.25;
    }

    .register-page .auth-btn-primary {
        height: 40px;
    }

    .register-page .auth-divider {
        margin: 10px 0;
    }

    .register-page form > .d-flex.align-items-center {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 768px) {
    body.auth-layout {
        min-height: 100svh;
        background: #fff;
        color: #061747;
    }

    .auth-header {
        height: 88px;
        padding: 16px 22px;
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #E5E7EB;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    }

    .login-page .auth-header {
        border-bottom: 0;
        box-shadow: none;
    }

    .auth-header .auth-brand {
        justify-content: flex-start !important;
        width: auto !important;
    }

    .auth-header .auth-brand img {
        width: var(--mobile-header-logo-width) !important;
        max-height: var(--mobile-header-logo-height) !important;
        max-width: var(--mobile-header-logo-width) !important;
    }

    .auth-header-actions {
        display: none;
    }

    .auth-content {
        display: block;
        min-height: 0;
    }

    .auth-hero {
        display: none;
    }

    .auth-form-side {
        display: block;
        padding: 0 22px 34px;
        background: #fff;
    }

    .auth-form-side::before,
    .auth-footer {
        display: none;
    }

    .auth-form-side > div {
        max-width: none !important;
        width: 100%;
    }

    .auth-mobile-welcome {
        display: block;
        margin: 0 22px 22px;
        min-height: 284px;
        border: 1px solid #CFE1F8;
        border-radius: 18px;
        overflow: hidden;
        background:
            linear-gradient(90deg, rgba(235, 247, 255, 0.98) 0%, rgba(235, 247, 255, 0.9) 42%, rgba(235, 247, 255, 0.25) 100%),
            url('../images/wallpaper01.png') center right / cover no-repeat;
        background-repeat: no-repeat, no-repeat;
        background-size: cover, min(520px, 72vw) auto;
        box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
    }

    .auth-mobile-welcome > div {
        width: 58%;
        padding: 42px 0 0 34px;
    }

    .auth-mobile-welcome h1 {
        margin: 0 0 18px;
        color: #061747;
        font-size: clamp(1.8rem, 8vw, 3.05rem);
        line-height: 1.14;
        letter-spacing: 0;
    }

    .auth-mobile-welcome h1 .brand-word {
        display: block;
        color: #073B8E;
        font-size: 1.18em;
    }

    .auth-mobile-welcome h1 em {
        font-style: normal;
        color: #F97316;
    }

    .auth-mobile-welcome p {
        margin: 0;
        color: #12336B;
        font-size: clamp(0.95rem, 3.4vw, 1.28rem);
        line-height: 1.45;
    }

    .login-page .auth-card {
        padding: 34px 28px;
        border: 1px solid #E5EAF3;
        border-radius: 22px;
        box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    }

    .auth-card,
    .auth-card.register-card {
        max-width: none;
    }

    .auth-card-title {
        text-align: left;
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1.1;
        margin-bottom: 6px;
        color: #061747;
    }

    .auth-card-subtitle {
        text-align: left;
        margin-bottom: 28px;
        color: #556173;
        font-size: clamp(1rem, 4vw, 1.35rem);
    }

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

    .auth-form-group .form-label {
        margin-bottom: 8px;
        color: #061747;
        font-size: 1rem !important;
        font-weight: 600;
    }

    .auth-input-group .form-control {
        height: 60px;
        border-radius: 13px;
        border-color: #D3DBE8;
        background: #fff;
        font-size: 1.12rem;
        padding-left: 58px;
    }

    .auth-input-icon {
        left: 22px;
        font-size: 1.25rem;
        color: #697489;
    }

    .auth-input-icon-right {
        right: 22px;
        font-size: 1.25rem;
    }

    .login-page .auth-card form > .d-flex {
        margin-bottom: 22px !important;
        font-size: 1rem !important;
    }

    .login-page input[type="checkbox"] {
        width: 28px;
        height: 28px;
        accent-color: #0B72F0;
    }

    .auth-btn-primary {
        height: 64px;
        border-radius: 13px;
        background: linear-gradient(180deg, #0B82F6 0%, #0057C8 100%);
        box-shadow: 0 10px 24px rgba(0, 87, 200, 0.28);
        font-size: 1.35rem;
    }

    .auth-divider {
        margin: 28px 0;
        font-size: 1.05rem;
    }

    .auth-footer-links {
        display: block;
        border: 1px solid #E2E8F0;
        border-radius: 14px;
        overflow: hidden;
    }

    .auth-footer-links a {
        min-height: 64px;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #E5E7EB;
        color: #061747;
        font-size: 1.05rem;
        font-weight: 800;
    }

    .auth-footer-links a:last-child {
        border-bottom: 0;
    }

    .auth-footer-links a::after {
        content: '\f105';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: #697489;
    }

    .auth-footer-links a i {
        color: #0B72F0 !important;
        font-size: 1.4rem;
    }

    .auth-security-banner {
        max-width: none;
        margin: 26px 22px 36px;
        padding: 24px;
        border-radius: 16px;
        background: #EEF7FF;
    }

    .auth-security-banner .banner-icon {
        width: 72px;
        height: 72px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 50%;
        background: #DBEDFF;
    }

    .auth-security-banner .font-weight-bold {
        color: #061747;
        font-size: 1.05rem !important;
    }

    .auth-security-grid {
        display: block;
        margin-top: 5px;
    }

    .auth-security-item {
        display: inline;
        color: #12336B;
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .auth-security-item:not(:first-child)::before {
        content: ', ';
    }

    .auth-security-item i {
        display: none;
    }

    /* Register mobile */
    .register-page .auth-form-side {
        padding: 28px 22px 36px;
    }

    .register-page .auth-card.register-card {
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .register-page .auth-card-title {
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
        margin-bottom: 12px;
    }

    .register-page .auth-card-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem) !important;
        margin-bottom: 24px !important;
    }

    .register-page .auth-steps {
        max-width: none;
        margin-bottom: 28px;
    }

    .register-page .auth-steps::before {
        top: 28px;
        left: 68px;
        right: 68px;
        height: 3px;
    }

    .register-page .auth-step {
        gap: 8px;
        background: #fff;
    }

    .register-page .auth-step-circle {
        width: 54px;
        height: 54px;
        font-size: 1.25rem;
    }

    .register-page .auth-step-label {
        font-size: 0.92rem;
        text-align: center;
    }

    .register-page .auth-step-label::before {
        display: block;
        margin-bottom: 2px;
        color: #64748B;
        font-weight: 500;
    }

    .register-page .auth-step:nth-child(1) .auth-step-label::before { content: '1/3'; }
    .register-page .auth-step:nth-child(2) .auth-step-label::before { content: '2/3'; }
    .register-page .auth-step:nth-child(3) .auth-step-label::before { content: '3/3'; }

    .register-page .register-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .register-page .grid-2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-page .auth-form-group {
        margin-bottom: 12px;
    }

    .register-page .auth-form-group .text-muted {
        display: none;
    }

    .register-page .auth-input-group .form-control,
    .register-page .form-control {
        min-height: 64px;
        height: 64px;
        border-radius: 12px;
        background: #fff !important;
        font-size: 1.08rem;
    }

    .register-page .auth-input-group {
        border-radius: 12px;
    }

    .register-page .auth-input-icon {
        color: #0069EA;
        font-size: 1.45rem;
    }

    .register-page form > .d-flex.align-items-center {
        align-items: flex-start;
        margin: 20px 0 18px !important;
        font-size: 0.98rem !important;
        line-height: 1.35;
    }

    .register-page input[type="checkbox"] {
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
        accent-color: #0B72F0;
    }

    .register-page .auth-divider {
        margin: 26px 0 18px;
    }

    .register-page form > .d-flex.justify-content-between {
        justify-content: center;
        gap: 8px;
        font-size: 1rem !important;
        margin-bottom: 20px;
    }

    .register-page form > .d-flex.justify-content-between > a:last-child {
        display: none;
    }

    .register-page .register-info-card {
        margin-top: 22px;
        padding: 22px;
        border-radius: 16px;
        background:
            linear-gradient(90deg, rgba(239, 248, 255, 0.96), rgba(239, 248, 255, 0.78)),
            url('../images/wallpaper02.png') right bottom / 48% auto no-repeat;
        background-repeat: no-repeat, no-repeat;
        border-color: #BFD9FF;
    }

    .register-page .register-info-list,
    .register-page .register-info-card > .d-flex:first-child,
    .register-page .register-info-card > div:last-child {
        display: none;
    }

    .register-page .register-info-card::before {
        content: 'Setelah daftar, apa yang terjadi?';
        display: block;
        margin-bottom: 8px;
        color: #061747;
        font-weight: 800;
        font-size: 1.05rem;
    }

    .register-page .register-info-card::after {
        content: 'Anda akan menerima OTP di email untuk verifikasi. Setelah itu, lengkapi profil perusahaan dan verifikasi nomor HP WhatsApp untuk mulai beroperasi.';
        display: block;
        max-width: 68%;
        color: #12336B;
        font-size: 0.98rem;
        line-height: 1.45;
    }
}

@media (max-width: 430px) {
    .auth-header {
        height: 76px;
        padding: 12px 18px;
    }

    .auth-header .auth-brand img {
        width: var(--mobile-header-logo-width) !important;
        max-height: var(--mobile-header-logo-height) !important;
        max-width: var(--mobile-header-logo-width) !important;
    }

    .auth-mobile-welcome {
        min-height: 210px;
        margin: 0 18px 18px;
    }

    .auth-mobile-welcome > div {
        width: 62%;
        padding: 26px 0 0 20px;
    }

    .login-page .auth-card {
        padding: 26px 20px;
    }

    .auth-form-side,
    .register-page .auth-form-side {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-input-group .form-control,
    .register-page .auth-input-group .form-control,
    .register-page .form-control {
        height: 56px;
        min-height: 56px;
    }

    .auth-btn-primary {
        height: 58px;
    }

    .auth-footer-links a {
        min-height: 56px;
    }

    .register-page .auth-step-circle {
        width: 44px;
        height: 44px;
    }

    .register-page .auth-steps::before {
        top: 23px;
        left: 54px;
        right: 54px;
    }

    .auth-card-title,
    .register-page .auth-card-title {
        font-size: 1.8rem;
    }

    .auth-card-subtitle,
    .register-page .auth-card-subtitle {
        margin-bottom: 18px;
        font-size: 0.98rem;
        line-height: 1.4;
    }

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

    .login-page .auth-card,
    .register-page .auth-card.register-card {
        border-radius: 18px;
    }

    .auth-security-banner {
        margin: 20px 18px 28px;
        padding: 16px;
        border-radius: 14px;
    }

    .auth-security-banner .banner-icon {
        width: 52px;
        height: 52px;
    }

    .register-page .auth-steps {
        margin: 18px 0 22px;
    }

    .register-page .register-info-card {
        padding: 18px 16px;
        min-height: 132px;
        border-radius: 14px;
    }

    .register-page .register-info-card::after {
        max-width: 72%;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body.login-page,
    body.register-page {
        height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }

    .auth-header {
        height: 62px;
        padding: 8px 14px;
    }

    .auth-header .auth-brand img {
        width: var(--mobile-header-logo-width) !important;
        max-height: var(--mobile-header-logo-height) !important;
        max-width: var(--mobile-header-logo-width) !important;
    }

    .auth-header::after {
        content: none;
        display: none;
    }

    .auth-mobile-welcome {
        min-height: 126px;
        margin: 0 14px 10px;
        border-radius: 14px;
    }

    .auth-mobile-welcome > div {
        width: 57%;
        padding: 17px 0 0 16px;
    }

    .auth-mobile-welcome h1 {
        margin-bottom: 6px;
        font-size: 1.34rem;
        line-height: 1.12;
    }

    .auth-mobile-welcome p {
        font-size: 0.78rem;
        line-height: 1.32;
    }

    .auth-form-side,
    .register-page .auth-form-side {
        padding: 0 14px 12px;
    }

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

    .auth-card-title,
    .register-page .auth-card-title {
        font-size: 1.52rem !important;
        margin-bottom: 4px;
    }

    .auth-card-subtitle,
    .register-page .auth-card-subtitle {
        margin-bottom: 12px !important;
        font-size: 0.86rem !important;
        line-height: 1.35;
    }

    .auth-form-group,
    .register-page .auth-form-group {
        margin-bottom: 8px;
    }

    .auth-form-group .form-label {
        margin-bottom: 4px;
        font-size: 0.78rem !important;
    }

    .auth-input-group .form-control,
    .register-page .auth-input-group .form-control,
    .register-page .form-control {
        min-height: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 0.84rem;
        padding-left: 42px;
    }

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

    .auth-input-icon-right {
        right: 14px;
        font-size: 1rem;
    }

    .login-page .auth-card form > .d-flex {
        margin-bottom: 10px !important;
        font-size: 0.82rem !important;
    }

    .login-page input[type="checkbox"],
    .register-page input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .auth-btn-primary,
    .register-page .auth-btn-primary {
        height: 44px;
        min-height: 44px;
        border-radius: 11px;
        font-size: 0.98rem;
    }

    .auth-divider,
    .register-page .auth-divider {
        margin: 10px 0;
        font-size: 0.82rem;
    }

    .auth-footer-links a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    .auth-footer-links a i {
        font-size: 1rem;
    }

    .auth-version-note {
        margin-top: 14px;
        font-size: 0.68rem;
        line-height: 1.2;
    }

    .auth-version-note strong {
        font-size: 0.72rem;
    }

    .auth-security-banner,
    .register-page .register-layout > div:last-child {
        display: none;
    }

    .register-page .auth-form-side {
        padding-top: 12px;
    }

    .register-page .auth-steps {
        margin: 8px 0 12px;
    }

    .register-page .auth-steps::before {
        top: 18px;
        left: 45px;
        right: 45px;
        height: 2px;
    }

    .register-page .auth-step {
        gap: 4px;
    }

    .register-page .auth-step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .register-page .auth-step-label {
        font-size: 0.72rem;
    }

    .register-page .auth-form-group .form-label {
        display: none;
    }

    .register-page .grid-2 {
        gap: 0;
    }

    .register-page form > .d-flex.align-items-center {
        margin: 8px 0 10px !important;
        font-size: 0.78rem !important;
        line-height: 1.25;
    }

    .register-page form > .d-flex.justify-content-between {
        margin: 8px 0 0;
        font-size: 0.82rem !important;
    }
}

/* Unified public/auth header sizing */
@media (min-width: 769px) {
    .auth-header {
        height: var(--header-height);
        min-height: var(--header-height);
        padding: 0 clamp(24px, 5vw, 70px);
    }

    .auth-header .auth-brand img {
        width: var(--header-logo-width) !important;
        max-height: var(--header-logo-height) !important;
    }
}

@media (max-width: 768px) {
    .auth-header {
        height: var(--mobile-header-height);
        min-height: var(--mobile-header-height);
        padding: 0 14px;
    }

    .auth-header .auth-brand img {
        width: var(--mobile-header-logo-width) !important;
        max-height: var(--mobile-header-logo-height) !important;
        max-width: var(--mobile-header-logo-width) !important;
    }

    .auth-header-actions {
        display: flex;
        margin-left: auto;
        gap: 0;
    }

    .auth-header-link {
        min-height: 36px;
        padding: 0 10px;
        border: 1px solid #D9E6F7;
        border-radius: 8px;
        background: #fff;
        color: #061747;
        font-size: 0.82rem;
        font-weight: 800;
    }
}

.auth-help-page {
    min-height: 100vh;
    height: auto !important;
    overflow: auto !important;
    background: #F8FBFF;
}

.auth-help-page .auth-header {
    position: sticky;
    top: 0;
}

.auth-help-page .auth-header .auth-brand {
    justify-content: flex-start !important;
    width: auto !important;
}

.auth-help-main {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 54px;
}

.auth-help-hero {
    min-height: 220px;
    padding: 34px;
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 24px;
    border: 1px solid #CFE1F8;
    border-radius: 18px;
        background:
            linear-gradient(90deg, rgba(235, 247, 255, 0.98), rgba(235, 247, 255, 0.8)),
            url('../images/wallpaper01.png') center right / cover no-repeat;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, min(620px, 58vw) auto;
    box-shadow: 0 16px 42px rgba(37, 99, 235, 0.1);
}

.auth-help-hero > span,
.auth-help-card > i {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #0057C8;
    color: #fff;
    font-size: 1.7rem;
}

.auth-help-hero p {
    margin: 0 0 8px;
    color: #0057C8;
    font-weight: 800;
}

.auth-help-hero h1 {
    margin: 0 0 10px;
    color: #061747;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
}

.auth-help-hero small {
    display: block;
    max-width: 650px;
    color: #29446F;
    font-size: 1rem;
    line-height: 1.55;
}

.auth-help-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.auth-help-card,
.auth-help-faq,
.auth-help-contact {
    border: 1px solid #D9E6F7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.auth-help-card {
    padding: 22px;
}

.auth-help-card > i {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 13px;
    font-size: 1.15rem;
}

.auth-help-card strong,
.auth-help-contact h2,
.auth-help-faq h2 {
    color: #061747;
}

.auth-help-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.auth-help-card p,
.auth-help-contact p,
.auth-help-faq p {
    color: #405477;
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-help-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #0057C8;
    font-weight: 800;
}

.auth-help-content {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
    gap: 18px;
}

.auth-help-faq,
.auth-help-contact {
    padding: 24px;
}

.auth-help-faq details {
    border-top: 1px solid #E2E8F0;
    padding: 14px 0;
}

.auth-help-faq summary {
    cursor: pointer;
    color: #061747;
    font-weight: 800;
}

.auth-help-faq p {
    margin: 8px 0 0;
}

.auth-help-contact div {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #17366C;
    font-weight: 700;
}

.auth-help-contact div i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #EAF3FF;
    color: #0057C8;
}

.auth-help-contact small {
    display: block;
    margin-top: 18px;
    color: #60769A;
}

.verify-email-page .verify-email-hero {
    background-image:
        linear-gradient(135deg, rgba(239, 248, 255, 0.95) 0%, rgba(219, 234, 254, 0.8) 48%, rgba(0, 87, 200, 0.38) 100%),
        url('../images/wallpaper02.png');
    background-position: center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, min(760px, 62vw) auto;
}

.verify-email-page .auth-features {
    grid-template-columns: repeat(3, 1fr);
}

.verify-card {
    text-align: left;
}

.verify-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #EAF3FF, #DBEAFE);
    color: #0057C8;
    font-size: 2rem;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.auth-alert-error {
    color: #B91C1C;
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.auth-alert-success {
    color: #166534;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
}

.otp-code-input {
    letter-spacing: 0.28em;
    font-weight: 800;
    text-align: center;
}

.verify-links {
    margin-top: 18px;
}

@media (max-width: 768px) {
    .auth-help-main {
        width: calc(100% - 24px);
        padding: 14px 0 28px;
    }

    .auth-help-hero {
        min-height: 150px;
        grid-template-columns: 52px 1fr;
        gap: 14px;
        padding: 18px;
        border-radius: 14px;
    }

    .auth-help-hero > span {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.25rem;
    }

    .auth-help-hero h1 {
        font-size: 1.55rem;
    }

    .auth-help-hero small {
        font-size: 0.84rem;
    }

    .auth-help-grid,
    .auth-help-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .auth-help-card,
    .auth-help-faq,
    .auth-help-contact {
        padding: 16px;
        border-radius: 12px;
    }

    .verify-email-page {
        height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }

    .reset-password-page {
        height: auto;
        min-height: 100svh;
        overflow: auto;
    }

    .verify-email-page .auth-form-side {
        padding-top: 12px;
    }

    .verify-email-page .auth-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .verify-email-page .auth-hero,
    .verify-email-page .auth-security-banner {
        display: none;
    }

    .verify-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 12px;
        border-radius: 16px;
        font-size: 1.5rem;
    }

    .verify-links {
        margin-top: 12px;
    }
}
