/* Auth Premium - Orbex Trading Platform */
/* Dark Trading Theme with Glassmorphism */

:root {
    --ox-bg: #050a18;
    --ox-card: rgba(10, 15, 30, 0.45);
    --ox-card-border: rgba(99, 102, 241, 0.15);
    --ox-accent: #6366f1;
    --ox-accent-light: #818cf8;
    --ox-purple: #7c3aed;
    --ox-cyan: #38bdf8;
    --ox-green: #22c55e;
    --ox-text: #f1f5f9;
    --ox-text-dim: #94a3b8;
    --ox-text-muted: #64748b;
    --ox-danger: #ef4444;
    --ox-input-bg: rgba(15, 23, 42, 0.35);
    --ox-input-border: rgba(99, 102, 241, 0.2);
    --ox-input-focus: rgba(99, 102, 241, 0.5);
    --ox-radius: 16px;
    --ox-radius-sm: 10px;
    --ox-glass-blur: 28px;
    --ox-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ox-label-bg: #07101f;
}

/* Reset */
.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.auth-page {
    min-height: 100vh;
    background: var(--ox-bg) url('../../images/trading-bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ox-text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated Trading Background */
.ox-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ox-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% 120%, rgba(99, 102, 241, 0.04), transparent 60%),
        linear-gradient(180deg, rgba(5, 10, 24, 0.3) 0%, rgba(10, 17, 40, 0.25) 50%, rgba(15, 23, 42, 0.35) 100%);
}

.ox-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: ox-grid-move 30s linear infinite;
}

@keyframes ox-grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

.ox-chart {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.ox-chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
}

.ox-chart-line::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99,102,241,0.1) 0%, transparent 100%);
    clip-path: polygon(0% 75%, 5% 70%, 10% 72%, 15% 65%, 20% 62%, 25% 58%, 30% 63%, 35% 55%, 40% 50%, 45% 53%, 50% 45%, 55% 48%, 60% 40%, 65% 42%, 70% 35%, 75% 38%, 80% 30%, 85% 33%, 90% 28%, 95% 25%, 100% 20%, 100% 100%, 0% 100%);
    animation: ox-chart-move 20s linear infinite;
}

.ox-chart-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 80%;
    background: linear-gradient(180deg, rgba(56,189,248,0.06) 0%, transparent 100%);
    clip-path: polygon(0% 80%, 8% 75%, 16% 78%, 24% 70%, 32% 72%, 40% 65%, 48% 60%, 56% 62%, 64% 55%, 72% 58%, 80% 50%, 88% 52%, 96% 45%, 100% 42%, 100% 100%, 0% 100%);
    animation: ox-chart-move 28s linear infinite reverse;
}

@keyframes ox-chart-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ox-particles {
    position: absolute;
    inset: 0;
}

.ox-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--ox-accent);
    border-radius: 50%;
    opacity: 0;
    animation: ox-float 8s infinite;
}

@keyframes ox-float {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 0.6; transform: translateY(-120px) scale(1); }
}

.ox-glow-1,
.ox-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: ox-pulse 6s ease-in-out infinite alternate;
}

.ox-glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.08);
    top: -100px;
    right: -100px;
}

.ox-glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.06);
    bottom: -50px;
    left: -50px;
    animation-delay: 3s;
}

@keyframes ox-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* Auth Wrap - Centers the panel */
.ox-auth-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
}

/* Back Link */
.ox-back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ox-text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(8px);
    transition: var(--ox-transition);
}

.ox-back:hover {
    color: var(--ox-accent-light);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(-2px);
}

/* Glass Panel */
.ox-panel {
    width: 100%;
    max-width: 440px;
    background: var(--ox-card);
    backdrop-filter: blur(var(--ox-glass-blur)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--ox-glass-blur)) saturate(1.2);
    border: 1px solid var(--ox-card-border);
    border-radius: var(--ox-radius);
    padding: 36px 32px 32px;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(99, 102, 241, 0.03);
    animation: ox-panel-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ox-panel-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* iOS Segmented Control */
.ox-seg {
    display: flex;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 28px;
}

.ox-seg a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ox-text-dim);
    text-decoration: none;
    transition: var(--ox-transition);
}

.ox-seg a.active {
    background: linear-gradient(135deg, var(--ox-accent), var(--ox-purple));
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ox-seg a:not(.active):hover {
    color: var(--ox-text);
    background: rgba(99, 102, 241, 0.08);
}

/* Logo */
.ox-logo {
    text-align: center;
    margin-bottom: 20px;
}

.ox-logo img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

/* Header */
.ox-header {
    text-align: center;
    margin-bottom: 28px;
}

.ox-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ox-text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.ox-header p {
    font-size: 13px;
    color: var(--ox-text-dim);
}

/* ─── Form Fields — Material Outlined Floating Labels ─── */
.ox-field {
    position: relative;
    margin-bottom: 22px;
}

.ox-field input,
.ox-field select {
    width: 100%;
    padding: 15px 16px 15px 42px;
    background: var(--ox-input-bg);
    border: 1.5px solid var(--ox-input-border);
    border-radius: var(--ox-radius-sm);
    color: var(--ox-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ox-field input:focus,
.ox-field select:focus {
    border-color: var(--ox-input-focus);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.05);
}

/* Password needs right padding for the eye toggle */
.ox-field input[type="password"] {
    padding-right: 46px;
}

/* ── Floating Label — default state: sits in input center ── */
.ox-field .ox-label {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ox-text-muted);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    transition: top 0.18s ease, left 0.18s ease, font-size 0.18s ease,
                color 0.18s ease, transform 0.18s ease, padding 0.18s ease;
    background: transparent;
    padding: 0 2px;
    border-radius: 2px;
    z-index: 2;
}

/* ── Floating Label — active state: straddles the top border line ── */
.ox-field input:focus ~ .ox-label,
.ox-field input:not(:placeholder-shown) ~ .ox-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--ox-accent-light);
    left: 11px;
    background: var(--ox-label-bg);
    padding: 0 5px;
}

/* Focused state label color */
.ox-field input:focus ~ .ox-label {
    color: var(--ox-accent);
}

/* Field icon */
.ox-field .ox-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ox-text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.ox-field input:focus ~ .ox-icon {
    color: var(--ox-accent);
}

/* Password toggle */
.ox-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ox-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: var(--ox-transition);
}

.ox-toggle:hover {
    color: var(--ox-accent-light);
}

/* Forgot password link */
.ox-forgot {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 20px;
}

.ox-forgot a {
    font-size: 12px;
    color: var(--ox-accent-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--ox-transition);
}

.ox-forgot a:hover {
    color: var(--ox-accent);
    text-decoration: underline;
}

/* Premium Button */
.ox-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--ox-radius-sm);
    background: linear-gradient(135deg, var(--ox-accent), var(--ox-purple));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--ox-transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.3px;
}

.ox-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.ox-btn:active {
    transform: translateY(0);
}

.ox-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.ox-btn:hover::after {
    transform: translateX(100%);
}

/* Divider */
.ox-divider {
    text-align: center;
    margin: 20px 0;
    font-size: 12px;
    color: var(--ox-text-muted);
    font-weight: 500;
}

/* Footer */
.ox-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--ox-text-dim);
}

.ox-footer a {
    color: var(--ox-accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--ox-transition);
}

.ox-footer a:hover {
    color: var(--ox-accent);
    text-decoration: underline;
}

/* Trust Badges */
.ox-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

/* Legacy span fallback */
.ox-trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--ox-text-muted);
    font-weight: 500;
}

.ox-trust i {
    color: var(--ox-green);
    font-size: 10px;
}

/* Badge pills */
.ox-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: var(--ox-text-muted);
    font-weight: 500;
    padding: 5px 10px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    transition: var(--ox-transition);
    white-space: nowrap;
}

.ox-trust-badge i {
    color: var(--ox-green);
    font-size: 10px;
}

.ox-trust-badge:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--ox-text-dim);
}

/* Step Wizard (Register) */
.ox-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 0 20px;
}

.ox-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ox-text-muted);
    transition: var(--ox-transition);
}

.ox-step.active {
    color: var(--ox-accent-light);
}

.ox-step.done {
    color: var(--ox-green);
}

.ox-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    transition: var(--ox-transition);
}

.ox-step.active .ox-step-num {
    background: linear-gradient(135deg, var(--ox-accent), var(--ox-purple));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.ox-step.done .ox-step-num {
    background: var(--ox-green);
    border-color: transparent;
    color: #fff;
}

.ox-step-line {
    width: 30px;
    height: 2px;
    background: rgba(99, 102, 241, 0.15);
    margin: 0 8px;
    border-radius: 1px;
    transition: var(--ox-transition);
}

.ox-step.done + .ox-step-line,
.ox-step-line.done {
    background: var(--ox-green);
}

/* Step Panes */
.ox-pane {
    display: none;
    animation: ox-pane-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ox-pane.active {
    display: block;
}

@keyframes ox-pane-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Country Selector */
.ox-country-selector {
    position: relative;
    margin-bottom: 20px;
}

.ox-country-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--ox-input-bg);
    border: 1.5px solid var(--ox-input-border);
    border-radius: var(--ox-radius-sm);
    color: var(--ox-text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: var(--ox-transition);
}

.ox-country-btn:focus {
    border-color: var(--ox-input-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ox-country-btn .flag {
    font-size: 20px;
}

.ox-country-btn .chevron {
    margin-left: auto;
    color: var(--ox-text-muted);
    font-size: 12px;
    transition: var(--ox-transition);
}

.ox-country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--ox-card-border);
    border-radius: var(--ox-radius-sm);
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.ox-country-dropdown.open {
    display: block;
    animation: ox-dropdown-in 0.2s ease;
}

@keyframes ox-dropdown-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ox-country-search {
    position: sticky;
    top: 0;
    padding: 10px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.ox-country-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    color: var(--ox-text);
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.ox-country-search input:focus {
    border-color: var(--ox-input-focus);
}

.ox-country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: var(--ox-text-dim);
}

.ox-country-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--ox-text);
}

.ox-country-item .flag {
    font-size: 18px;
}

.ox-country-item .dial {
    margin-left: auto;
    color: var(--ox-text-muted);
    font-size: 12px;
}

/* Phone Row */
.ox-phone-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ox-dial-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0 12px;
    background: var(--ox-input-bg);
    border: 1.5px solid var(--ox-input-border);
    border-radius: var(--ox-radius-sm);
    color: var(--ox-text-dim);
    font-size: 14px;
    font-weight: 500;
}

.ox-phone-row .ox-field {
    flex: 1;
    margin-bottom: 0;
}

/* Checkbox */
.ox-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--ox-text-dim);
    line-height: 1.4;
}

.ox-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--ox-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.ox-check a {
    color: var(--ox-accent-light);
    text-decoration: none;
}

.ox-check a:hover {
    text-decoration: underline;
}

/* Navigation buttons row */
.ox-nav-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.ox-nav-row .ox-btn {
    flex: 1;
}

.ox-btn-outline {
    background: transparent;
    border: 1.5px solid var(--ox-input-border);
    color: var(--ox-text-dim);
    box-shadow: none;
}

.ox-btn-outline:hover {
    border-color: var(--ox-accent);
    color: var(--ox-text);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: none;
    transform: none;
}

/* Sponsor info row */
.ox-sponsor-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--ox-green);
    font-weight: 500;
}

.ox-sponsor-info i {
    font-size: 14px;
}

/* Handle bar for mobile bottom sheet */
.ox-handle {
    width: 36px;
    height: 4px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
    margin: 0 auto 20px;
    display: none;
}

/* Responsive - Mobile Bottom Sheet */
@media (max-width: 480px) {
    .ox-auth-wrap {
        align-items: flex-end;
        padding: 0;
    }

    .ox-panel {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 20px 20px 32px;
        animation: ox-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        min-height: 70vh;
    }

    .ox-handle {
        display: block;
    }

    @keyframes ox-slide-up {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .ox-back {
        top: 12px;
        left: 12px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .ox-seg a {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* Legacy compat classes for RegisterSuccess */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--ox-card);
    backdrop-filter: blur(var(--ox-glass-blur)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--ox-glass-blur)) saturate(1.2);
    border: 1px solid var(--ox-card-border);
    border-radius: var(--ox-radius);
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: ox-panel-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-success-icon {
    text-align: center;
    margin-bottom: 20px;
    font-size: 56px;
}

.auth-card h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--ox-text);
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--ox-text-dim);
    margin-bottom: 24px;
}

.auth-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--ox-input-bg);
    border: 1px solid var(--ox-input-border);
    border-radius: 8px;
    margin-bottom: 10px;
}

.auth-info-row .label {
    font-size: 12px;
    color: var(--ox-text-muted);
    font-weight: 500;
}

.auth-info-row .value {
    font-size: 14px;
    color: var(--ox-text);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.auth-info-row .copy-btn {
    background: none;
    border: none;
    color: var(--ox-accent-light);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.auth-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 8px;
    margin: 16px 0;
    font-size: 12px;
    color: #fbbf24;
    line-height: 1.4;
}

.auth-warning i {
    font-size: 16px;
    margin-top: 1px;
}

.auth-flip-wrapper {
    perspective: 1000px;
}

/* Confirm Modal (ForgotPassword) */
.ob-bd {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 10, 24, 0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ob-bd.show {
    display: flex;
}

.ob-modal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--ox-card-border);
    border-radius: var(--ox-radius);
    padding: 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: ox-panel-in 0.3s ease;
}

.ob-modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ox-text);
    margin-bottom: 8px;
}

.ob-modal p {
    font-size: 13px;
    color: var(--ox-text-dim);
    margin-bottom: 24px;
    line-height: 1.5;
}

.ob-modal-actions {
    display: flex;
    gap: 10px;
}

.ob-modal-actions .ox-btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 13px;
}

/* Processing overlay */
.ob-proc {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(5, 10, 24, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.ob-proc.show {
    display: flex;
}

.ob-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--ox-accent);
    border-radius: 50%;
    animation: ox-spin 0.8s linear infinite;
}

@keyframes ox-spin {
    to { transform: rotate(360deg); }
}

.ob-proc p {
    font-size: 14px;
    color: var(--ox-text-dim);
}

/* Alert messages */
.ox-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ox-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--ox-green);
}

.ox-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--ox-danger);
}

/* Utility */
.hidden {
    display: none !important;
}

/* ASP.NET validator styles */
.ox-field span[style*="color:Red"],
.ox-field span[style*="color:red"] {
    font-size: 11px !important;
    display: block;
    margin-top: 4px;
}

/* Step Navigation Buttons */
.ox-step-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ox-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--ox-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ox-transition);
}

.ox-nav-btn.next {
    background: linear-gradient(135deg, var(--ox-accent), var(--ox-purple));
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.ox-nav-btn.next:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.ox-nav-btn.prev {
    background: transparent;
    border: 1.5px solid var(--ox-input-border);
    color: var(--ox-text-dim);
}

.ox-nav-btn.prev:hover {
    border-color: var(--ox-accent);
    color: var(--ox-text);
    background: rgba(99, 102, 241, 0.05);
}

/* Step Bar (between steps) */
.ox-step-bar {
    width: 30px;
    height: 2px;
    background: rgba(99, 102, 241, 0.15);
    margin: 0 6px;
    border-radius: 1px;
    transition: var(--ox-transition);
}

.ox-step.done ~ .ox-step-bar {
    background: var(--ox-green);
}

/* Step label */
.ox-step-label {
    font-size: 11px;
}

/* Country Custom Selector */
.ox-country {
    position: relative;
}

.ox-country .ox-country-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--ox-input-bg);
    border: 1.5px solid var(--ox-input-border);
    border-radius: var(--ox-radius-sm);
    color: var(--ox-text);
    font-size: 14px;
    cursor: pointer;
    transition: var(--ox-transition);
}

.ox-country .ox-country-btn:hover {
    border-color: var(--ox-input-focus);
}

.ox-country .ox-country-btn .flag {
    font-size: 16px;
    font-weight: 600;
}

.ox-country .ox-country-btn .name {
    flex: 1;
}

.ox-country .ox-country-btn .dial {
    color: var(--ox-text-muted);
    font-size: 13px;
}

.ox-country .ox-country-btn .caret {
    color: var(--ox-text-muted);
    font-size: 12px;
    transition: var(--ox-transition);
}

.ox-country-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(10, 16, 38, 0.99);
    border: 1px solid var(--ox-card-border);
    border-radius: var(--ox-radius-sm);
    max-height: 260px;
    overflow-y: auto;
    z-index: 200;
    display: none;
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99,102,241,0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.3) transparent;
}

/* Open: triggered by .open class on the PARENT .ox-country element */
.ox-country.open .ox-country-menu {
    display: block;
    animation: ox-dropdown-in 0.2s ease;
}

/* Rotate caret when open */
.ox-country.open .ox-country-btn .caret i {
    transform: rotate(180deg);
}

.ox-country-menu .search-box {
    position: sticky;
    top: 0;
    padding: 10px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.ox-country-menu .search-box input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    color: var(--ox-text);
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.ox-country-menu .search-box input:focus {
    border-color: var(--ox-input-focus);
}

.ox-country-list .ox-country-item,
.ox-country-list .opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: var(--ox-text-dim);
}

.ox-country-list .ox-country-item:hover,
.ox-country-list .opt:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--ox-text);
}

/* flag / name / dial within opt row */
.ox-country-list .opt .flag,
.ox-country-list .ox-country-item .flag {
    font-size: 15px;
    font-weight: 700;
    min-width: 28px;
    display: inline-block;
}

.ox-country-list .opt .name,
.ox-country-list .ox-country-item .name {
    flex: 1;
    font-size: 13px;
}

.ox-country-list .opt .dial,
.ox-country-list .ox-country-item .dial {
    color: var(--ox-text-muted);
    font-size: 12px;
    font-family: monospace;
}

/* Dial prefix */
.ox-dial {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 0 12px;
    background: var(--ox-input-bg);
    border: 1.5px solid var(--ox-input-border);
    border-radius: var(--ox-radius-sm);
    color: var(--ox-text-dim);
    font-size: 14px;
    font-weight: 500;
    height: 48px;
}

/* Phone row (Register) */
.ox-phone-row {
    display: flex;
    gap: 10px;
}

.ox-phone-row input {
    flex: 1;
    padding: 14px 16px;
    background: var(--ox-input-bg);
    border: 1.5px solid var(--ox-input-border);
    border-radius: var(--ox-radius-sm);
    color: var(--ox-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: var(--ox-transition);
}

.ox-phone-row input:focus {
    border-color: var(--ox-input-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Show password checkbox */
.ox-show-pwd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--ox-text-dim);
    cursor: pointer;
}

.ox-show-pwd input[type="checkbox"] {
    accent-color: var(--ox-accent);
    cursor: pointer;
}

/* Checkbox fix for asp:CheckBox */
.ox-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--ox-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.ox-check label {
    position: static;
    transform: none;
    color: var(--ox-text-dim);
    font-size: 12px;
    pointer-events: auto;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════
   SUBMIT LOADER OVERLAY  — Premium Fintech Dark Theme
   ══════════════════════════════════════════════════════════════════════════ */
.ox-loader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 10, 24, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ox-loader-overlay.ox-show {
    display: flex;
    animation: ox-loader-fadein 0.25s ease;
}

@keyframes ox-loader-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ox-loader-card {
    width: 100%;
    max-width: 340px;
    background: rgba(8, 13, 28, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 22px;
    padding: 40px 32px 34px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.06),
        0 28px 90px rgba(0, 0, 0, 0.65),
        0 0 80px rgba(99, 102, 241, 0.08);
    animation: ox-panel-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dual-ring spinning icon */
.ox-loader-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 26px;
}

.ox-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--ox-accent);
    border-right-color: rgba(99, 102, 241, 0.25);
    animation: ox-spin 0.85s linear infinite;
}

.ox-loader-ring-2 {
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--ox-cyan);
    border-left-color: rgba(56, 189, 248, 0.2);
    animation: ox-spin 1.5s linear infinite reverse;
}

.ox-loader-icon-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ox-accent-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step text */
.ox-loader-step-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--ox-text);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
    min-height: 26px;
}

.ox-loader-sub-text {
    font-size: 12px;
    color: var(--ox-text-muted);
    margin-bottom: 22px;
    min-height: 18px;
}

/* Progress bar */
.ox-loader-progress-wrap {
    width: 100%;
    height: 3px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.ox-loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ox-accent), var(--ox-cyan));
    border-radius: 2px;
    transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulsing dots */
.ox-loader-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 22px;
}

.ox-loader-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ox-accent);
    opacity: 0.3;
    animation: ox-dot-blink 1.2s ease-in-out infinite;
}

.ox-loader-dot:nth-child(2) { animation-delay: 0.2s; }
.ox-loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ox-dot-blink {
    0%, 100% { opacity: 0.25; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); background: var(--ox-cyan); }
}

/* Error message box */
.ox-loader-error-msg {
    display: none;
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 10px;
    font-size: 13px;
    color: #fca5a5;
    margin-bottom: 14px;
    text-align: left;
    line-height: 1.5;
}

.ox-loader-error-msg.ox-show { display: block; }

/* Dismiss / Try Again button */
.ox-loader-dismiss {
    display: none;
    width: 100%;
    padding: 11px 20px;
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    background: transparent;
    color: var(--ox-danger);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ox-transition);
    margin-bottom: 16px;
}

.ox-loader-dismiss:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--ox-danger);
}

/* Secure note */
.ox-loader-secure-note {
    font-size: 11px;
    color: var(--ox-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    letter-spacing: 0.2px;
}

.ox-loader-secure-note i {
    color: var(--ox-green);
    font-size: 10px;
}

/* ── Error state ── */
.ox-loader-overlay.ox-err .ox-loader-ring {
    animation: none;
    border-color: transparent;
    border-top-color: var(--ox-danger);
    border-right-color: rgba(239, 68, 68, 0.25);
}

.ox-loader-overlay.ox-err .ox-loader-ring-2 {
    animation: none;
    border-color: transparent;
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

.ox-loader-overlay.ox-err .ox-loader-icon-inner { color: var(--ox-danger); }

.ox-loader-overlay.ox-err .ox-loader-progress-fill {
    background: var(--ox-danger);
    transition: width 0.3s ease;
}

.ox-loader-overlay.ox-err .ox-loader-error-msg.ox-show,
.ox-loader-overlay.ox-err .ox-loader-dismiss { display: block; }

.ox-loader-overlay.ox-err .ox-loader-dots { display: none; }

/* ── Success state ── */
.ox-loader-overlay.ox-ok .ox-loader-ring {
    animation: none;
    border-color: transparent;
    border-top-color: var(--ox-green);
    border-right-color: rgba(34, 197, 94, 0.3);
}

.ox-loader-overlay.ox-ok .ox-loader-ring-2 {
    animation: none;
    border-color: transparent;
    border-bottom-color: rgba(34, 197, 94, 0.25);
}

.ox-loader-overlay.ox-ok .ox-loader-icon-inner { color: var(--ox-green); }

.ox-loader-overlay.ox-ok .ox-loader-progress-fill {
    width: 100% !important;
    background: linear-gradient(90deg, var(--ox-green), #4ade80);
    transition: width 0.5s ease;
}

.ox-loader-overlay.ox-ok .ox-loader-dots .ox-loader-dot { background: var(--ox-green); }

/* Misc additions */
.ox-glow-3 {
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    bottom: 30%;
    right: 30%;
    animation: ox-pulse 9s ease-in-out infinite alternate;
    animation-delay: 6s;
}

.ox-btn-primary {
    background: linear-gradient(135deg, var(--ox-accent) 0%, var(--ox-purple) 100%);
}

/* ──── Save Credentials Modal ─────────────────────────── */
.ox-save-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ox-save-modal {
    background: linear-gradient(145deg,rgba(10,16,38,.97) 0%,rgba(7,10,28,.98) 100%);
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 20px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(99,102,241,.1), inset 0 1px 0 rgba(255,255,255,.06);
    animation: ox-slide-up .35s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}
@keyframes ox-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ox-save-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg,rgba(99,102,241,.18),rgba(124,92,246,.28));
    border: 1px solid rgba(99,102,241,.4);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px; color: #818cf8;
    box-shadow: 0 0 30px rgba(99,102,241,.3);
    animation: ox-shield-pulse 2.2s ease-in-out infinite;
}
@keyframes ox-shield-pulse {
    0%,100% { box-shadow: 0 0 22px rgba(99,102,241,.3); }
    50%     { box-shadow: 0 0 44px rgba(99,102,241,.65), 0 0 64px rgba(99,102,241,.18); }
}
.ox-save-title {
    text-align: center; color: #e2e8f0;
    font-size: 18px; font-weight: 700;
    margin: 0 0 8px; letter-spacing: -.3px;
}
.ox-save-sub {
    text-align: center; color: #64748b;
    font-size: 13px; line-height: 1.5;
    margin: 0 0 20px;
}
.ox-save-info {
    background: rgba(5,10,28,.7);
    border: 1px solid rgba(99,102,241,.12);
    border-radius: 12px;
    padding: 4px 0; margin-bottom: 16px;
}
.ox-save-row {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ox-save-row:last-child { border-bottom: none; }
.ox-save-lbl {
    color: #64748b; font-size: 11px;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px;
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.ox-save-val {
    color: #c4b5fd; font-size: 13px;
    font-weight: 600; text-align: right; word-break: break-all;
}
.ox-save-secure {
    text-align: center; color: #475569; font-size: 11px;
    margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.ox-save-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ox-save-btn-primary {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg,#6366f1 0%,#7c3aed 100%);
    color: #fff; border: none; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .2s; box-shadow: 0 4px 20px rgba(99,102,241,.4);
}
.ox-save-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(99,102,241,.55); }
.ox-save-btn-ghost {
    width: 100%; padding: 13px;
    background: rgba(10,18,45,.5); color: #94a3b8;
    border: 1px solid rgba(99,130,255,.15);
    border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.ox-save-btn-ghost:hover { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.3); color: #c4b5fd; }
.ox-save-link {
    display: block; text-align: center;
    color: #6366f1; font-size: 12px; font-weight: 600;
    text-decoration: none; letter-spacing: .3px; opacity: .8; transition: opacity .2s;
}
.ox-save-link:hover { opacity: 1; text-decoration: underline; }

/* ──── Saved Credentials Banner (Login page) ──────────────── */
.ox-saved-banner {
    background: linear-gradient(135deg,rgba(12,20,46,.9),rgba(18,26,56,.85));
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 12px;
    padding: 12px 16px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; transition: all .2s;
    animation: ox-fade-in .4s ease;
}
.ox-saved-banner:hover { border-color: rgba(99,102,241,.6); background: rgba(28,36,72,.9); }
.ox-saved-banner-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg,rgba(99,102,241,.2),rgba(124,92,246,.3));
    border: 1px solid rgba(99,102,241,.3);
    display: flex; align-items: center; justify-content: center;
    color: #818cf8; font-size: 14px; flex-shrink: 0;
}
.ox-saved-banner-body { flex: 1; min-width: 0; }
.ox-saved-banner-title { font-size: 12px; font-weight: 700; color: #c4b5fd; display: block; margin-bottom: 2px; }
.ox-saved-banner-sub   { font-size: 11px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-saved-banner-arrow { color: #6366f1; font-size: 13px; flex-shrink: 0; }

/* ─── Global Glass Popups (Auth) ──────────────────────────────────────── */
.ox-save-modal-bg,
.ob-bd,
.wd-modal,
.modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ox-save-modal-bg,
.ob-bd,
.wd-modal {
    background: radial-gradient(circle at 22% 12%, rgba(99, 102, 241, 0.22), transparent 42%), rgba(4, 9, 22, 0.78) !important;
}

.ox-save-modal,
.ob-modal,
.wd-modal .box,
.modal-content,
.Popup {
    width: min(92vw, 560px) !important;
    max-width: 560px !important;
    max-height: min(86vh, 760px) !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    background: linear-gradient(145deg, rgba(8, 14, 34, 0.96), rgba(10, 16, 38, 0.88)) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.12) inset !important;
    color: #e2e8f0 !important;
    position: relative;
    animation: ox-pop-in .22s ease-out;
}

.ox-save-modal::before,
.ob-modal::before,
.wd-modal .box::before,
.modal-content::before,
.Popup::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02) 38%, rgba(56, 189, 248, 0.09));
}

@keyframes ox-pop-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .ox-save-modal,
    .ob-modal,
    .wd-modal .box,
    .modal-content,
    .Popup {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 16px !important;
        padding: 16px !important;
    }
}

/* ──── Reset / Forgot Password helpers ─────────────────────── */
.ox-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 4px;
}

/* Password requirement hint */
.ox-hint {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #8b95b5;
    margin: -8px 2px 0;
    line-height: 1.5;
}
.ox-hint i { color: var(--ox-accent); }

/* Floating particles (JS creates .ox-dot) */
.ox-dot {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    pointer-events: none;
    animation: ox-dot-rise linear infinite;
    box-shadow: 0 0 6px currentColor;
}
@keyframes ox-dot-rise {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* AJAX status messages (.auth-msg success | error) */
.auth-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 4px 0 14px;
    animation: ox-fade-in .3s ease;
}
.auth-msg i { margin-top: 1px; flex-shrink: 0; }
.auth-msg.success {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.28);
}
.auth-msg.error {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.28);
}

/* Server-rendered messages (.alert err | ok) */
.alert {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 4px 0 14px;
    animation: ox-fade-in .3s ease;
}
.alert.err {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.28);
}
.alert.ok {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.28);
}
.alert i { color: inherit; }

/* Inline link-button used by server fallback messages */
a.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--ox-accent) 0%, var(--ox-purple) 100%);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
    transition: transform .15s ease, box-shadow .15s ease;
}
a.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.42);
}
