/* ============================================
   OBS AUTH - FASSET STYLE CSS
   Part 1 of 2: Foundation + Components
   ============================================ */

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Backgrounds */
    --bg-black: #0a0a0c;
    --bg-card: #1c1c20;
    --bg-input: #2a2a2e;
    --bg-input-focus: #32323a;
    --bg-elevated: #28282d;
    
    /* Accent colors (Fasset Green) */
    --green: #2ECC71;
    --green-hover: #27ae60;
    --green-disabled: #3d4d44;
    --green-text: #1abc9c;
    --green-bg: rgba(46, 204, 113, 0.1);
    --green-bg-hover: rgba(46, 204, 113, 0.15);
    
    /* Orange (forgot password) */
    --orange: #f59e0b;
    --orange-bg: rgba(245, 158, 11, 0.1);
    
    /* Blue (info) */
    --blue: #0ea5e9;
    --blue-bg: rgba(14, 165, 233, 0.1);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-placeholder: rgba(255, 255, 255, 0.35);
    --text-dark: #0a0a0c;
    
    /* Status */
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: #f87171;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --divider: rgba(255, 255, 255, 0.08);
    
    /* Sizing */
    --radius-input: 100px;
    --radius-button: 100px;
    --radius-card: 24px;
    --radius-otp: 14px;
    --radius-method: 16px;
    
    /* Spacing */
    --container-padding: 24px;
    --container-max: 520px;
    
    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ===== BODY ===== */
.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-black);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* ===== STEP CONTAINERS (page sections) ===== */
.auth-step {
    display: none;
    min-height: 100vh;
    flex-direction: column;
    animation: stepFadeIn 0.35s ease;
}

.auth-step.active {
    display: flex;
}

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

/* ===== TOP BAR ===== */
.auth-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    min-height: 56px;
    position: sticky;
    top: 0;
    background: var(--bg-black);
    z-index: 10;
}

.auth-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}

.auth-back-btn:hover {
    background: var(--bg-elevated);
}

.auth-back-btn:active {
    transform: scale(0.92);
}

.auth-page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    flex: 1;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

.auth-top-link {
    color: var(--green);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 4px;
    transition: var(--transition);
}

.auth-top-link:hover {
    color: var(--green-hover);
}

.auth-skip-btn {
    background: transparent;
    border: none;
    color: var(--green);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 4px;
    transition: var(--transition);
}

.auth-skip-btn:hover {
    color: var(--green-hover);
}

/* ===== PROGRESS BAR ===== */
.auth-progress {
    display: flex;
    gap: 8px;
    padding: 0 var(--container-padding);
    margin-bottom: 24px;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.auth-progress::before,
.auth-progress::after {
    content: '';
    flex: 1;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
}

.auth-progress-bar {
    position: absolute;
    height: 4px;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Single bar style */
.auth-progress {
    position: relative;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.auth-progress::before,
.auth-progress::after {
    display: none;
}

.auth-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ===== CONTENT WRAPPER ===== */
.auth-content {
    flex: 1;
    padding: 16px var(--container-padding) 40px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== SECTION TITLE ===== */
.auth-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.5px;
}

.auth-section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 32px;
}

.auth-section-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== FORM ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    padding-left: 4px;
}

.auth-optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

/* ===== INPUT WRAPPER ===== */
.auth-input-wrap {
    position: relative;
    background: var(--bg-input);
    border-radius: var(--radius-input);
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.auth-input-wrap:focus-within {
    background: var(--bg-input-focus);
    border-color: rgba(46, 204, 113, 0.3);
}

.auth-input-wrap.auth-input-error {
    border-color: var(--danger);
}

.auth-input-wrap.auth-input-success {
    border-color: var(--green);
}

.auth-input-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    padding: 18px 24px;
    font-family: inherit;
    outline: none;
}

.auth-input-wrap input::placeholder {
    color: var(--text-placeholder);
    font-weight: 400;
}

.auth-input-wrap input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auto-fill fix */
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0 100px var(--bg-input) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== EYE BUTTON ===== */
.auth-eye-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 12px 20px 12px 8px;
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.auth-eye-btn:hover {
    color: var(--text-primary);
}

/* ===== INPUT ROW (for phone with country code) ===== */
.auth-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.auth-country-code {
    background: var(--bg-input);
    border-radius: var(--radius-input);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    flex-shrink: 0;
}

.bd-flag {
    font-size: 18px;
    line-height: 1;
}

.auth-input-flex {
    flex: 1;
}

/* ===== REFER CODE BOX ===== */
.auth-refer-wrap {
    position: relative;
}

.auth-refer-wrap input {
    padding-right: 90px;
    text-transform: uppercase;
}

.auth-refer-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--green);
    color: var(--text-dark);
    border: none;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-width: 70px;
    text-align: center;
}

.auth-refer-btn:hover:not(:disabled) {
    background: var(--green-hover);
}

.auth-refer-btn:disabled {
    background: var(--green-disabled);
    color: var(--text-muted);
    cursor: not-allowed;
}

.auth-refer-status {
    font-size: 13px;
    padding: 4px 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
}

.auth-refer-status.success {
    color: var(--green);
}

.auth-refer-status.error {
    color: var(--danger-border);
}

.auth-refer-status i {
    font-size: 13px;
}

.auth-refer-status strong {
    color: var(--text-primary);
}

/* ===== MATCH TEXT ===== */
.auth-match-text {
    font-size: 13px;
    padding: 0 12px;
    margin: 0;
    min-height: 18px;
}

.auth-match-success {
    color: var(--green);
}

.auth-match-error {
    color: var(--danger-border);
}

/* ===== PASSWORD REQUIREMENTS ===== */
.auth-requirements {
    list-style: none;
    padding: 8px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-requirements li {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.auth-requirements li i {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    width: 16px;
    text-align: center;
}

.auth-requirements li.met {
    color: var(--text-primary);
}

.auth-requirements li.met i {
    color: var(--green);
}

/* ===== CHECKBOX ===== */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px;
}

.auth-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--bg-input);
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition);
}

.auth-checkbox input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
}

.auth-checkbox input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-dark);
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.auth-checkbox label {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    padding-top: 1px;
}

.auth-checkbox label a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.auth-checkbox label a:hover {
    color: var(--green-hover);
    text-decoration: underline;
}

.auth-checkbox-inline {
    align-items: center;
}

.auth-checkbox-inline input {
    margin-top: 0;
}

.auth-checkbox-inline label {
    padding-top: 0;
}

/* ===== REMEMBER ROW ===== */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    margin-top: -8px;
}

/* ===== BUTTONS ===== */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-button);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}

.auth-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.auth-btn-full {
    width: 100%;
    margin-top: 12px;
}

/* Primary Button (Green) */
.auth-btn-primary {
    background: var(--green);
    color: var(--text-dark);
}

.auth-btn-primary:hover:not(:disabled) {
    background: var(--green-hover);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.25);
}

.auth-btn-primary:disabled {
    background: var(--green-disabled);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Outline Button */
.auth-btn-outline {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.auth-btn-outline:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--green);
}

/* Secondary Button (subtle) */
.auth-btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.auth-btn-secondary:hover:not(:disabled) {
    background: var(--bg-card);
    color: var(--text-primary);
}

.auth-btn-secondary:disabled {
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Text Button */
.auth-btn-text {
    background: transparent;
    color: var(--green);
    padding: 14px 20px;
}

.auth-btn-text:hover:not(:disabled) {
    background: var(--green-bg);
    color: var(--green-hover);
}

/* Passkey Button (special) */
.auth-btn-passkey {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.auth-btn-passkey:hover {
    background: var(--green-bg-hover);
    border-color: var(--green);
}

.auth-btn-passkey i {
    font-size: 18px;
}

/* ===== BOTTOM LINKS ===== */
.auth-bottom-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
}

.auth-bottom-link a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-bottom-link a:hover {
    color: var(--green-hover);
    text-decoration: underline;
}

.auth-link-center {
    text-align: center;
    color: var(--green);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    padding: 12px;
    display: block;
    transition: var(--transition);
}

.auth-link-center:hover {
    color: var(--green-hover);
    text-decoration: underline;
}

/* ===== NOTE / INFO TEXT ===== */
.auth-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 16px;
}

.auth-note i {
    color: var(--blue);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== OTP BOXES ===== */
.otp-input-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 32px 0 16px;
}

.otp-box {
    width: 52px;
    height: 60px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius-otp);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
    caret-color: var(--green);
}

.otp-box:focus {
    background: var(--bg-input-focus);
    border-color: var(--green);
    transform: scale(1.05);
}

.otp-box:not(:placeholder-shown) {
    background: var(--bg-input-focus);
    border-color: rgba(46, 204, 113, 0.3);
}

.otp-error {
    color: var(--danger-border);
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    margin: 0 0 16px;
    font-weight: 500;
}

/* ===== LOADING OVERLAY ===== */
.auth-loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.auth-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--bg-elevated);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-loading-content p {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

/* ===== TOAST NOTIFICATIONS ===== */
.auth-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100% - 32px);
    width: 400px;
    pointer-events: none;
}

.auth-toast {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.auth-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.auth-toast.success .auth-toast-icon {
    background: var(--green);
    color: var(--text-dark);
}

.auth-toast.error .auth-toast-icon {
    background: var(--danger);
}

.auth-toast.warning .auth-toast-icon {
    background: var(--warning);
}

.auth-toast.info .auth-toast-icon {
    background: var(--blue);
}

.auth-toast-content {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}

.auth-toast-close:hover {
    color: var(--text-primary);
}

/* ============================================
   OBS AUTH - PART 2 of 2
   Components + Welcome + Success + Responsive
   ============================================ */

/* ===== WELCOME SCREEN ===== */
#stepWelcome {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.auth-welcome-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.welcome-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: orbFloat 12s ease-in-out infinite;
}

.welcome-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--green);
    top: -150px;
    right: -100px;
}

.welcome-orb-2 {
    width: 350px;
    height: 350px;
    background: var(--green-text);
    bottom: -100px;
    left: -100px;
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}

.auth-welcome-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px var(--container-padding);
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.welcome-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 32px;
    box-shadow: 0 12px 32px rgba(46, 204, 113, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.5;
}

.welcome-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-already {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
}

.welcome-already a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.welcome-already a:hover {
    color: var(--green-hover);
    text-decoration: underline;
}

/* ===== VERIFY ILLUSTRATION ===== */
.verify-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.verify-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 32px;
    position: relative;
}

.verify-icon-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--green-bg);
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Color variants */
.verify-icon-orange {
    background: var(--orange-bg);
    color: var(--orange);
}

.verify-icon-orange::before {
    border-color: var(--orange-bg);
}

.verify-icon-green {
    background: var(--green-bg);
    color: var(--green);
}

/* ===== VERIFY STEPS LIST ===== */
.verify-steps-list {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.verify-step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.verify-step-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.verify-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== VERIFY WAITING BOX ===== */
.verify-waiting-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--green-bg);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 14px;
    padding: 14px 20px;
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.verify-waiting-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ===== METHOD SELECTOR LIST ===== */
.method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-method);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-family: inherit;
}

.method-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
    transform: translateX(2px);
}

.method-item:active {
    transform: scale(0.98);
}

.method-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.method-icon-green {
    background: var(--green-bg);
    color: var(--green);
}

.method-icon-blue {
    background: var(--blue-bg);
    color: var(--blue);
}

.method-info {
    flex: 1;
    min-width: 0;
}

.method-info h4 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.method-info p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.method-arrow {
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
    flex-shrink: 0;
}

.method-item:hover .method-arrow {
    color: var(--green);
    transform: translateX(3px);
}

/* ===== GOOGLE USER INFO CARD ===== */
.google-user-info {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.google-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.google-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.google-avatar span {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.google-user-info h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.google-user-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.google-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-bg);
    color: var(--green);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.google-verified-badge i {
    font-size: 12px;
}

/* ===== PASSKEY ANIMATION ===== */
.passkey-animation {
    display: flex;
    justify-content: center;
    margin: 32px 0;
    position: relative;
    height: 140px;
    align-items: center;
}

.passkey-pulse-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--green);
    opacity: 0;
    animation: passkeyPulse 2s ease-out infinite;
}

@keyframes passkeyPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.passkey-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--green-bg);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    z-index: 1;
    position: relative;
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.25);
}

/* ===== PASSKEY STATUS ===== */
.passkey-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 14px 20px;
    border-radius: 14px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.passkey-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* ===== PASSKEY ACCOUNT CARDS ===== */
.passkey-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.passkey-account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-method);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    color: var(--text-primary);
    font-family: inherit;
    width: 100%;
}

.passkey-account-card:hover {
    background: var(--bg-elevated);
    border-color: var(--green);
}

.pk-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.pk-account-info {
    flex: 1;
    min-width: 0;
}

.pk-account-info h4 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-account-info p {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-icon {
    color: var(--green);
    font-size: 22px;
    flex-shrink: 0;
}

/* ===== SUCCESS SCREEN ===== */
.auth-success-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px var(--container-padding);
    text-align: center;
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
}

.success-icon-wrap {
    margin-bottom: 24px;
    position: relative;
}

.success-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--green);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.4);
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 3px solid var(--green);
    opacity: 0.3;
    animation: successRing 1.5s ease-out infinite;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.success-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.success-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

/* ===== SUCCESS DEVICE CARD ===== */
.success-device-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    width: 100%;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.success-device-card h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.device-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
}

.device-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.device-row:first-of-type {
    padding-top: 0;
}

.device-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.device-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== SUCCESS INFO CARD (forgot password) ===== */
.success-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--green-bg);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 24px;
    width: 100%;
    text-align: left;
}

.info-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(46, 204, 113, 0.15);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.info-card-content h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.info-card-content p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* ===== REDIRECT INDICATOR ===== */
.success-redirect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 20px;
}

.redirect-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: dotPulse 1s ease-in-out infinite;
}

.success-redirect span {
    font-weight: 500;
}

/* ===== CONFETTI ===== */
.success-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 2px;
    animation: confettiFall linear forwards;
    opacity: 0.8;
}

@keyframes confettiFall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== SECURITY ILLUSTRATION ===== */
.security-illustration {
    display: flex;
    justify-content: center;
    margin: 16px 0 24px;
}

.security-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: var(--green-bg);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.15);
}

/* ============================================
   RESPONSIVE - MOBILE FIRST APPROACH
   ============================================ */

/* Small phones */
@media (max-width: 380px) {
    :root {
        --container-padding: 18px;
    }
    
    .auth-section-title {
        font-size: 22px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .otp-box {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }
    
    .otp-input-row {
        gap: 6px;
    }
    
    .auth-input-wrap input {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .auth-country-code {
        padding: 16px 14px;
        font-size: 14px;
    }
    
    .auth-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .auth-content,
    .auth-welcome-content,
    .auth-success-content {
        padding: 32px var(--container-padding);
    }
    
    .auth-step {
        background: var(--bg-black);
    }
    
    /* Subtle background pattern on desktop */
    .auth-body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: 
            radial-gradient(circle at 20% 20%, rgba(46, 204, 113, 0.04) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(46, 204, 113, 0.04) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }
    
    .auth-section-title {
        font-size: 28px;
    }
    
    .welcome-title {
        font-size: 42px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .auth-content {
        padding: 24px 32px 60px;
    }
    
    .otp-box {
        width: 56px;
        height: 64px;
        font-size: 26px;
    }
    
    .otp-input-row {
        gap: 12px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible */
.auth-btn:focus-visible,
.auth-input-wrap input:focus-visible,
.otp-box:focus-visible,
.method-item:focus-visible,
.passkey-account-card:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.auth-back-btn:focus-visible,
.auth-eye-btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .verify-icon-circle::before,
    .passkey-pulse-ring,
    .success-icon::before,
    .redirect-dot,
    .passkey-status-dot,
    .welcome-orb {
        animation: none !important;
    }
}

/* ============================================
   SAFE AREA (iPhone notch / Home indicator)
   ============================================ */
@supports (padding: env(safe-area-inset-top)) {
    .auth-top-bar {
        padding-top: max(14px, env(safe-area-inset-top));
    }
    
    .auth-content,
    .auth-welcome-content,
    .auth-success-content {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
    
    .auth-toast-container {
        top: max(20px, calc(env(safe-area-inset-top) + 10px));
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .auth-body {
        background: white;
        color: black;
    }
    
    .auth-back-btn,
    .auth-eye-btn,
    .auth-btn,
    .auth-loading,
    .auth-toast-container {
        display: none !important;
    }
}

/* ============================================
   SCROLLBAR (subtle)
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-medium);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--green);
    color: var(--text-dark);
}

::-moz-selection {
    background: var(--green);
    color: var(--text-dark);
}