/* Auth hero */
.auth-hero {
    background: #1a1a2e;
    border-radius: 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.auth-hero--wallpaper {
    background: #0a0a14;
}

/* Floating cards container */
.floating-cards {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* Spotlight effect */
.floating-cards::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(
        ellipse at center,
        rgba(100, 120, 180, 0.15) 0%,
        rgba(60, 80, 140, 0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.floating-card {
    position: absolute;
    width: 180px;
    height: 113px;
    background: url('/assets/img/cards/visa-card-floating.png') center / cover no-repeat;
    border-radius: 12px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
}

/* Card 1 - Top left */
.floating-card:nth-child(1) {
    top: 70px;
    left: -25px;
    transform: rotate(-22deg) rotateY(20deg) rotateX(12deg);
    opacity: 0.85;
    width: 140px;
    height: 88px;
}

/* Card 2 - Top right */
.floating-card:nth-child(2) {
    top: 60px;
    right: -30px;
    transform: rotate(28deg) rotateY(-18deg) rotateX(-8deg);
    opacity: 0.7;
    width: 130px;
    height: 81px;
}

/* Card 3 - Left side */
.floating-card:nth-child(3) {
    top: 140px;
    left: -20px;
    transform: rotate(-30deg) rotateY(25deg) rotateX(15deg);
    opacity: 0.9;
    width: 160px;
    height: 100px;
}

/* Card 4 - Center, main focus */
.floating-card:nth-child(4) {
    top: 130px;
    left: 50%;
    transform: translateX(-50%) rotate(6deg) rotateY(-8deg) rotateX(4deg);
    opacity: 1;
    width: 200px;
    height: 125px;
    z-index: 2;
}

/* Card 5 - Right side */
.floating-card:nth-child(5) {
    top: 170px;
    right: -35px;
    transform: rotate(35deg) rotateY(-22deg) rotateX(-12deg);
    opacity: 0.8;
    width: 150px;
    height: 94px;
}

/* Card 6 - Bottom left */
.floating-card:nth-child(6) {
    bottom: 60px;
    left: 10px;
    transform: rotate(-15deg) rotateY(18deg) rotateX(8deg);
    opacity: 0.65;
    width: 120px;
    height: 75px;
}

/* Floating cards responsive */
@media (max-width: 400px) {
    .floating-card {
        transform: scale(0.8);
    }
    .floating-cards::before {
        width: 200px;
        height: 200px;
    }
}

.auth-hero--compact {
    min-height: 220px;
    max-height: 240px;
    flex-shrink: 1;
}

.auth-hero--compact .auth-hero-greeting {
    padding-bottom: 4rem;
}

.auth-hero--compact .auth-hero-greeting h2 {
    font-size: 1.4rem;
}

.auth-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 2, 10, 0.85) 0%,
        rgba(2, 2, 10, 0.6) 15%,
        rgba(5, 5, 15, 0.3) 35%,
        rgba(5, 5, 15, 0.3) 55%,
        rgba(2, 2, 10, 0.6) 75%,
        rgba(2, 2, 10, 0.9) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.auth-hero > *:not(.floating-cards) {
    position: relative;
    z-index: 3;
}

.auth-hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.auth-hero-header:has(.auth-hero-back) {
    justify-content: space-between;
}

.auth-hero-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-hero-back:hover {
    color: #fff;
}

.auth-hero-back svg,
.auth-hero-back i {
    width: 24px;
    height: 24px;
}

.auth-hero-spacer {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.auth-hero-logo {
    display: flex;
    align-items: center;
}

.auth-logo {
    height: 3rem;
    width: auto;
}

.auth-hero-greeting {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 2rem 4rem;
    text-align: center;
}

.auth-hero-greeting h2 {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.01em;
}

#mobile-wrapper:has(.auth-hero) {
    background: #ffffff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.auth-content {
    min-height: 0 !important;
    gap: 0 !important;
    padding: 0 !important;
    background: transparent;
    flex: 1;
    position: relative;
    z-index: 2;
    margin-top: -2rem;
    display: flex;
    flex-direction: column;
}

.auth-content-body {
    padding: 2rem 1.75rem 3rem;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    animation: slideUpCard 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes slideUpCard {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compact layout adjustments */
.auth-hero--compact + .auth-content .auth-content-body {
    display: flex;
    flex-direction: column;
}

.auth-title {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

/* Pill button */
.btn-pill {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #1a1a2e;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.06em;
    min-height: 52px;
    margin-top: 1rem;
    box-sizing: border-box;
    font-family: inherit;
}

.btn-pill .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-pill .btn-arrow svg {
    width: 18px;
    height: 18px;
}

.btn-pill:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-pill:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.3);
}

.btn-pill:not(:disabled):active {
    transform: translateY(0);
}

/* Auth success states */
.auth-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.auth-success-icon svg {
    width: 32px;
    height: 32px;
    color: #34d399;
}

/* Auth error icon */
.auth-error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.auth-error-icon svg {
    width: 48px;
    height: 48px;
    color: #dc2626;
}

.auth-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(52, 211, 153, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(52, 211, 153, 0.2);
    margin-bottom: 1.5rem;
}

.auth-success-badge .badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.auth-success-badge .badge-text {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
}

.auth-countdown {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 1.5rem;
}

/* Auth progress icon */
.auth-progress-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: #1a1a2e;
}

/* Auth status container */
.auth-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.auth-status-text {
    font-size: 0.875rem;
    color: #64748b;
}

/* Auth info box */
.auth-info-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.auth-info-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
}

.auth-info-list {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}

.auth-info-list li {
    margin-bottom: 0.25rem;
}

.auth-info-list li:last-child {
    margin-bottom: 0;
}

/* Secondary pill button */
.btn-pill-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
    margin-top: 0.75rem;
    box-sizing: border-box;
    font-family: inherit;
}

.btn-pill-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1a1a2e;
}

/* Danger pill button */
.btn-pill-danger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
    margin-top: 0.75rem;
    box-sizing: border-box;
    font-family: inherit;
}

.btn-pill-danger:hover {
    background: #b91c1c;
}

/* Auth detail card */
.auth-detail-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.25rem 0;
    margin-bottom: 1.5rem;
}

.auth-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.auth-detail-item:last-child {
    border-bottom: none;
}

.auth-detail-label {
    font-size: 0.8rem;
    color: #64748b;
}

.auth-detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a2e;
    text-align: right;
}

.auth-detail-amount {
    color: #dc2626;
    font-weight: 600;
}

.auth-detail-badge {
    background: #e2e8f0;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Auth error state */
.auth-error-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #dc2626;
}

.auth-error-state svg {
    margin-bottom: 1rem;
}

.auth-error-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a2e;
}

.auth-error-state p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Auth modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.auth-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.auth-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.auth-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #64748b;
}

.auth-modal-close:hover {
    color: #1a1a2e;
}

.auth-modal-body {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-modal-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
}

.auth-modal-subtext {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-modal-actions .btn-pill-danger,
.auth-modal-actions .btn-pill-secondary {
    margin-top: 0;
}

/* Form overrides inside auth */
.auth-content-body .form-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #64748b !important;
    text-align: left;
}

.auth-content-body .form-input {
    border-radius: 50px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #1a1a2e;
}

.auth-content-body .form-input::placeholder {
    color: #94a3b8;
}

.auth-content-body .form-input:focus {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

.auth-content-body .phone-input-group {
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}

.auth-content-body .phone-prefix {
    background: #f1f5f9;
    color: #475569;
    border-right: 1.5px solid #e2e8f0;
}

.auth-content-body .phone-input {
    color: #1a1a2e !important;
    text-align: left !important;
}

.auth-content-body .phone-input::placeholder {
    color: #94a3b8 !important;
}

.auth-content-body .otp-inputs input.otp-input {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #1a1a2e;
}

.auth-content-body .otp-inputs input.otp-input:focus {
    border-color: #1a1a2e;
    background: #ffffff;
}

.auth-content-body .otp-inputs input.otp-input.otp-valid {
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.05);
    color: #059669;
}

.auth-content-body .error-message,
.auth-content-body .form-error-message {
    border-radius: 50px;
}

.auth-content-body .wallet-error {
    background: rgba(248, 113, 113, 0.08) !important;
    border-radius: 50px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.auth-content-body .wallet-error-text {
    color: #dc2626;
}

/* Activation styles */
.activation-title {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Sofia Pro', sans-serif, bold;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-stretch: semi-condensed;
}

.activation-loading-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.activation-loading-icon-emoji {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.activation-warning-container {
    padding: 1.5rem;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.activation-warning-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.activation-warning-icon {
    width: 2rem;
    height: 2rem;
    background: var(--color-warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activation-warning-icon-text {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.activation-warning-title {
    font-weight: 600;
    color: var(--color-warning);
    font-size: 16px;
}

.activation-warning-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.activation-status-container {
    text-align: center;
    margin-bottom: 2rem;
}

.activation-status-inner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
}

.activation-status-loading {
    display: block;
    margin: 0;
}

.activation-status-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.activation-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activation-btn-secondary {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activation-btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
}

.activation-info-box {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--color-info);
}

.activation-info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.activation-info-list {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    padding-left: 1rem;
}

.activation-success-container {
    margin-top: 2rem;
    text-align: center;
}

.activation-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.activation-success-icon {
    width: 2rem;
    height: 2rem;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.activation-success-content {
    text-align: left;
}

.activation-success-title {
    font-weight: 600;
    color: var(--color-success);
    font-size: 14px;
}

.activation-success-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.activation-button-container {
    margin-top: 2rem;
}

.activation-sms-info {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.activation-resend-btn {
    background: none;
    border: none;
    color: var(--color-info);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.activation-resend-btn:hover {
    color: #1e40af;
}

.activation-countdown {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 32, 44, 0.95);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 1000;
    min-width: 280px;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive auth */
@media (max-width: 400px) {
    .auth-hero {
        min-height: 45vh;
    }
    .auth-title {
        font-size: 1.5rem;
    }
    .auth-content-body {
        padding: 1.5rem 1.25rem 2.5rem;
    }
    .auth-hero-greeting h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .auth-hero {
        min-height: 42vh;
    }
}

@media (min-height: 750px) {
    .auth-hero {
        min-height: 40vh;
    }
}

@media (max-height: 600px) {
    .auth-hero {
        min-height: 38vh;
    }
    .auth-hero-greeting {
        padding-bottom: 3rem;
    }
}

/* Compact hero responsive - for OTP views */
@media (max-height: 700px) {
    .auth-hero--compact {
        min-height: 15vh;
        max-height: 22vh;
    }
}

@media (max-height: 600px) {
    .auth-hero--compact {
        min-height: 12vh;
        max-height: 18vh;
    }
    .auth-hero--compact .auth-hero-greeting {
        display: none;
    }
}

@media (max-height: 500px) {
    .auth-hero--compact {
        min-height: 10vh;
        max-height: 15vh;
    }
}
