/* Zell OTP Simple - Frontend Styles (aligned with glassmorphism UI from login.html) */

:root{
    --zell-bg1:#f6fbff;
    --zell-bg2:#e3f0ff;
    --zell-primary:#1d4ed8;
    --zell-primarySoft:rgba(29,78,216,.10);
    --zell-accent:#0ea5e9;
    --zell-text:#0f172a;
    --zell-muted:#64748b;
    --zell-glassBorder: rgba(255,255,255,.8);
    --zell-border:#cbd5e1;
    --zell-radiusLg:18px;
    --zell-radiusMd:12px;
    --zell-radiusPill:999px;
    --zell-aurora: linear-gradient(120deg,#4f46e5,#0ea5e9,#22c55e,#f97316);
    --zell-btnGrad: linear-gradient(135deg,var(--zell-primary),var(--zell-accent));
}

.login-register-modal-form-wrapper{
    /* match modal body background from login.html */
    background: radial-gradient(circle at top left, rgba(246,251,255,.7), rgba(227,240,255,.35));
    padding:18px;
    box-sizing:border-box;
}

.zell-otp-wrap{
    max-width:520px;
    margin:0 auto;
}

.zell-otp-form{
    background: rgba(255,255,255,.92);
    border:1px solid var(--zell-glassBorder);
    border-radius: var(--zell-radiusLg);
    padding:18px;
    box-shadow: 0 18px 46px rgba(15,23,42,.10);
}

.zell-otp-tabs{
    display:flex;
    gap:10px;
    padding:2px;
    border:1px solid rgba(203,213,225,.75);
    border-radius: var(--zell-radiusPill);
    background: rgba(255,255,255,.75);
    margin-bottom:14px;
}

.zell-otp-tab{
    flex:1;
    border:none;
    background:transparent;
    cursor:pointer;
    padding:10px 12px;
    border-radius: var(--zell-radiusPill);
    font-weight:700;
    font-size:13px;
    color: var(--zell-muted);
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.zell-otp-tab.active{
    background: var(--zell-primarySoft);
    color: var(--zell-text);
    box-shadow: 0 6px 18px rgba(15,23,42,.06);
    outline: 1px solid rgba(29,78,216,.35);
}

.zell-otp-panel{ display:none; }
.zell-otp-panel.active{ display:block; }

/* Hide mobile number fields in login panel - login only uses email */
.login-panel .zell-otp-phone-row,
.login-panel .zell-otp-mobile-local,
.login-panel .cc-picker,
.login-panel input[type="text"].zell-otp-mobile-local,
.login-panel #loginCcPicker,
.login-panel .zell-otp-field:has(.zell-otp-phone-row),
.login-panel .zell-otp-field:has(.zell-otp-mobile-local),
.login-panel .zell-otp-field:has(.cc-picker) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.zell-otp-field{
    margin-bottom:12px;
    text-align:left;
}

.zell-otp-two-col{
    display:flex;
    gap:10px;
}
.zell-otp-two-col .zell-otp-field{
    flex:1;
}

.zell-otp-phone-row{
    display:flex;
    gap:10px;
    align-items:stretch;
}

/* Country Code Picker Styles (matching login.html demo) */
.cc-picker{
    position:relative;
    min-width: 180px;
    max-width: 220px;
    flex: 0 0 200px;
}
.cc-btn{
    width:100%;
    height:100%;
    padding: 10px 10px;
    border:1px solid var(--zell-border);
    border-radius: 10px;
    background:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
    box-sizing:border-box;
}
.cc-btn:hover{ transform: translateY(-1px); }
.cc-btn:focus{
    outline:none;
    border-color: var(--zell-primary);
    box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}
.cc-left{ display:flex; align-items:center; gap:8px; min-width:0; }
.cc-flag{ font-size: 16px; line-height:1; }
.cc-code{ font-weight:800; font-size: 13px; white-space:nowrap; }
.cc-name{
    font-size: 11.5px;
    color: var(--zell-muted);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width: 110px;
    font-weight:300;
}
.cc-caret{ color: var(--zell-muted); font-size: 12px; flex: 0 0 auto; }

.cc-menu{
    position:absolute;
    top: calc(100% + 8px);
    left:0;
    width: 360px;
    max-width: 78vw;
    background:#fff;
    border:1px solid rgba(203,213,225,.9);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow:hidden;
    display:none;
    z-index: 30;
}
.cc-menu.open{ display:block; }
.cc-search{
    padding: 10px 10px;
    border-bottom: 1px solid #eef2f7;
    background: #fbfdff;
}
.cc-search input{
    width:100%;
    padding: 10px 10px;
    border:1px solid var(--zell-border);
    border-radius: 10px;
    font-size: 13px;
    outline:none;
    font-weight:300;
    box-sizing:border-box;
}
.cc-search input:focus{
    border-color: var(--zell-primary);
    box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}
.cc-list{ max-height: 290px; overflow:auto; }
.cc-item{
    width:100%;
    text-align:left;
    border:none;
    background:#fff;
    cursor:pointer;
    padding: 10px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    border-bottom: 1px solid #f1f5f9;
    box-sizing:border-box;
}
.cc-item:hover{ background:#f8fafc; }
.cc-item-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.cc-item .n{
    font-size: 12.5px;
    font-weight:700;
    color:#0f172a;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width: 235px;
}
.cc-item .c{
    font-size: 12.5px;
    font-weight:800;
    color:#1e3a8a;
    white-space:nowrap;
}

/* Legacy select (kept for backward compatibility if needed) */
.zell-otp-cc{
    padding:12px 10px;
    border-radius:10px;
    border:1px solid var(--zell-border);
    background:#fff;
    font-size:13px;
}

@media (max-width: 520px){
    .cc-picker{ flex: 0 0 165px; min-width:165px; }
    .cc-menu{ width: calc(100vw - 36px); }
}

.zell-otp-chip-group{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.zell-otp-chip{
    padding:8px 14px;
    border-radius:999px;
    border:1px solid var(--zell-border);
    background:#fff;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
    color:var(--zell-text);
    transition:all .15s ease;
}
.zell-otp-chip:hover{
    border-color: var(--zell-primary);
    background:#eff6ff;
}
.zell-otp-chip.zell-otp-chip-selected{
    border-color: var(--zell-primary);
    background:#dbeafe;
    color:#1e3a8a;
    box-shadow:0 2px 8px rgba(37,99,235,.18);
}

.zell-otp-label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
    color: var(--zell-text);
    font-size:13px;
}

.zell-otp-input{
    width:100%;
    padding:12px 12px;
    border:1px solid var(--zell-border);
    border-radius:10px;
    font-size:14px;
    font-weight:300;
    outline:none;
    background:#fff;
    transition: box-shadow .15s ease, border-color .15s ease;
    box-sizing:border-box;
}

.zell-otp-input:focus{
    border-color: var(--zell-primary);
    box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}

.zell-otp-btn{
    width:100%;
    padding:12px 24px;
    border-radius: var(--zell-radiusPill);
    border:none;
    background-image: var(--zell-btnGrad);
    color:#fff;
    font-size:.95rem;
    font-weight:600;
    cursor:pointer;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.zell-otp-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.35);
}

.zell-otp-btn:disabled{
    opacity:.55;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
    filter:grayscale(1);
}

.zell-otp-message{
    padding:10px 12px;
    border-radius:12px;
    margin-bottom:12px;
    font-size:12.5px;
    line-height:1.45;
    font-weight:300;
}

.zell-otp-message.success{
    background:#f0fdf4;
    border:1px solid rgba(22,163,74,.35);
    color:#14532d;
}

.zell-otp-message.error{
    background:#fef2f2;
    border:1px solid rgba(185,28,28,.35);
    color:#7f1d1d;
}

.zell-otp-divider{
    text-align:center;
    margin:12px 0;
    position:relative;
}

.zell-otp-divider::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    width:100%;
    height:1px;
    background: rgba(203,213,225,.55);
}

.zell-otp-divider span{
    background:#fff;
    padding:0 15px;
    color: var(--zell-muted);
    font-size:14px;
    position:relative;
}

.zell-otp-email-form{ margin-top:12px; }

.zell-otp-resend{
    text-align:center;
    margin-top:10px;
    font-size:12.5px;
    color: var(--zell-muted);
}

.zell-otp-resend a{
    color: var(--zell-primary);
    text-decoration:none;
    font-weight:600;
}

.zell-otp-resend a:hover{ text-decoration:underline; }

.zell-otp-resend.disabled{
    opacity:.5;
    pointer-events:none;
}

.zell-otp-countdown{
    color: var(--zell-primary);
    font-weight:600;
}

/* Legacy secondary buttons (no longer used with single-CTA flow) */
.zell-otp-verify-btn,
.zell-otp-register-btn{
    display:none !important;
}

