:root {
    --auth-primary: #7c3aed;
    --auth-primary-soft: rgba(124, 58, 237, 0.08);
    --auth-primary-glow: rgba(124, 58, 237, 0.2);
    --auth-primary-hover: #6d28d9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--auth-primary-soft) 0%, #f1f5f9 50%, #fce7f3 100%);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.auth-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07), 0 0 1px 1px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (min-width: 850px) {
    .auth-card {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.auth-sidebar {
    background: linear-gradient(135deg, var(--auth-primary-soft) 0%, #ffffff 100%);
    padding: 2.5rem 2.25rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid #e2e8f0;
}

@media (min-width: 850px) {
    .auth-sidebar {
        display: flex;
    }
}

.sidebar-top-section {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
}

.brand-logo-container {
    margin-bottom: 0.25rem;
}

.app-logo {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.app-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--auth-primary);
    letter-spacing: -0.01em;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.2rem;
    letter-spacing: -0.015em;
}

.brand-desc {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 400;
}

/* ZERO-OVERLAP GRID SLIDER CONTAINER (DESKTOP) */
.auth-promo-swap-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.promo-swap-slide {
    grid-area: 1 / 1 / 2 / 2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
    z-index: 1;
}

.promo-swap-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 3;
}

.promo-swap-slide.slide-out {
    opacity: 0;
    transform: translateX(-35px) scale(0.92) rotate(-2deg);
    z-index: 2;
}

.auth-promo-voucher-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1.5px solid var(--auth-primary);
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px -4px var(--auth-primary-glow), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.voucher-shimmer-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    animation: shimmerSweep 3.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

.voucher-punch-notch {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--auth-primary-soft);
    border: 1.5px solid var(--auth-primary);
    border-radius: 50%;
    z-index: 2;
}

.voucher-punch-notch.notch-left {
    left: -7px;
    border-left: none;
}

.voucher-punch-notch.notch-right {
    right: -7px;
    border-right: none;
}

.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.voucher-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2.5px 8px;
    border-radius: 20px;
    border: 1px solid var(--auth-primary);
}

.voucher-pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--auth-primary);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.3);
    animation: dotPulse 1.5s infinite ease-in-out;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.voucher-value-pill {
    background: #0f172a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

.voucher-headline {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.voucher-code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px dashed var(--auth-primary);
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.code-text-group {
    display: flex;
    flex-direction: column;
}

.code-label {
    font-size: 8.5px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.5px;
}

.code-string {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--auth-primary);
    letter-spacing: 1px;
}

.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--auth-primary);
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px var(--auth-primary-glow);
}

.btn-copy-code:hover {
    filter: brightness(0.9);
    transform: scale(1.03);
}

.btn-copy-code:active {
    transform: scale(0.97);
}

.voucher-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: #64748b;
    font-weight: 400;
}

.gift-variant {
    border-style: solid;
}

.gift-badge {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.gift-highlight-pill {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 8px 12px;
    border-radius: 8px;
    color: #065f46;
    font-size: 12.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.promo-swap-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
}

.swap-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.swap-dot.active {
    width: 22px;
    border-radius: 8px;
    background: #e2e8f0;
}

.swap-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--auth-primary);
    border-radius: 8px;
    animation: dotFillProgress 4s linear infinite;
}

@keyframes dotFillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.sidebar-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.feature-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--auth-primary);
}

.sidebar-footer {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 1.5rem;
    font-weight: 400;
}

/* MOBILE DEDICATED PROMO SLIDER */
.mobile-promo-swap-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    width: 100%;
}

@media (min-width: 850px) {
    .mobile-promo-swap-wrapper {
        display: none !important;
    }
}

.mobile-promo-slides-track {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.mobile-promo-strip {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px dashed var(--auth-primary);
    border-radius: 10px;
    padding: 8px 12px;
    width: 100%;
}

.mobile-promo-strip.gift-strip {
    border-style: solid;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.mobile-promo-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-promo-badge {
    font-size: 9px;
    font-weight: 800;
    color: var(--auth-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-promo-badge.gift {
    color: #065f46;
}

.mobile-promo-code {
    font-size: 12px;
    color: #0f172a;
}

.mobile-gift-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    padding: 3px 8px;
    border-radius: 6px;
}

.promo-swap-pagination.mobile-dots {
    margin-top: 6px;
}

.auth-form-container {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

@media (min-width: 640px) {
    .auth-form-container {
        padding: 3rem 2.5rem;
    }
}

.mobile-logo-wrapper {
    display: flex;
    margin-bottom: 1.25rem;
}

@media (min-width: 850px) {
    .mobile-logo-wrapper {
        display: none;
    }
}

.form-header {
    margin-bottom: 1.25rem;
}

.form-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.2rem;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
}

.forgot-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--auth-primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 400;
    outline: none;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    background-color: #ffffff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-glow);
}

.form-input.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.auth-field-error-wrapper {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-field-error-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.4;
    animation: fadeInError 0.2s ease-out;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-svg-icon {
    flex-shrink: 0;
    color: #dc2626;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-input {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 400;
}

.submit-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: var(--auth-primary);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--auth-primary-glow);
    transition: all 0.2s ease;
    margin-top: 0.25rem;
}

.submit-btn:hover {
    filter: brightness(0.9);
    box-shadow: 0 6px 16px var(--auth-primary-glow);
}

.submit-btn:active {
    transform: scale(0.98);
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 400;
    margin: 1rem 0 0.75rem 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.social-divider span {
    padding: 0 0.65rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.social-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.switch-auth-text {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.35rem;
    font-weight: 400;
}

.switch-auth-link {
    font-weight: 500;
    color: var(--auth-primary);
    text-decoration: none;
}

.switch-auth-link:hover {
    text-decoration: underline;
}

.auth-alert-box-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.full-width-btn {
    width: 100% !important;
}

.font-bold {
    font-weight: 600;
}

.text-success {
    color: #16a34a !important;
}

.margin-bottom-24 {
    margin-bottom: 20px;
}

.margin-top-8 {
    margin-top: 8px;
}

.margin-top-24 {
    margin-top: 20px;
}
.otp-auth-card {
    max-width: 480px;
    margin: 0 auto;
    grid-template-columns: 1fr !important;
}

.full-width-card {
    width: 100%;
}

.text-center {
    text-align: center;
}

.otp-inputs-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem 0 0.5rem 0;
}

.otp-digit-input {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--auth-primary);
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

.otp-digit-input:focus {
    background-color: #ffffff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-glow);
    transform: translateY(-2px);
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-alert {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.error-alert {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.otp-resend-container {
    margin-top: 1.25rem;
    text-align: center;
}

.resend-countdown-text {
    font-size: 0.82rem;
    color: #64748b;
}

.resend-countdown-text strong {
    color: var(--auth-primary);
    font-weight: 600;
}

.resend-actions-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.resend-link-btn {
    background: none;
    border: none;
    color: var(--auth-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.resend-link-btn:hover {
    text-decoration: underline;
    filter: brightness(0.85);
}

.resend-separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .form-input {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--auth-primary);
}

.toggle-eye-icon {
    width: 18px;
    height: 18px;
}
.compact-auth-container {
    padding: 1.75rem 2rem !important;
}

@media (min-width: 640px) {
    .compact-auth-container {
        padding: 2rem 2.25rem !important;
    }
}

.compact-header {
    margin-bottom: 0.85rem !important;
}

.compact-form {
    gap: 0.65rem !important;
}

.form-input-sm {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.82rem !important;
}

.form-dual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

@media (max-width: 480px) {
    .form-dual-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}

.compact-checkbox-group {
    margin-top: -0.15rem;
}

.submit-btn-compact {
    padding: 0.6rem 1rem !important;
    margin-top: 0.1rem !important;
}

.social-divider-compact {
    margin: 0.6rem 0 0.5rem 0 !important;
}

.compact-switch-text {
    margin-top: 0.15rem !important;
}