/* DZ Email OTP Login — v3.0 */

/* ── Wrap ── */
.dz-auth-wrap {
    max-width: 480px;
    margin: 0 auto 40px;
    background: var(--dz-bg, #fff);
    border-radius: var(--dz-radius, 16px);
    box-shadow: 0 4px 40px rgba(0,0,0,.09);
    border: 1px solid #e8e8e8;
    overflow: hidden;
    color: var(--dz-text, #1a1a2e);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Tabs ── */
.dz-tabs {
    display: flex;
    background: #f6f6f8;
    border-bottom: 1px solid #e8e8e8;
}
.dz-tab {
    flex: 1;
    padding: 15px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s, background .2s;
}
.dz-tab:hover { color: var(--dz-primary, #6c3ce1); }
.dz-tab.active {
    color: var(--dz-primary, #6c3ce1);
    background: var(--dz-bg, #fff);
    border-bottom-color: var(--dz-primary, #6c3ce1);
}

/* ── Panel ── */
.dz-panel { padding: 26px 28px; }

/* ── Method Switch ── */
.dz-method-switch {
    display: flex;
    gap: 6px;
    background: #f2f2f4;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 22px;
}
.dz-method-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all .2s;
}
.dz-method-btn:hover { color: var(--dz-primary, #6c3ce1); }
.dz-method-btn.active {
    background: var(--dz-bg, #fff);
    color: var(--dz-primary, #6c3ce1);
    box-shadow: 0 1px 6px rgba(0,0,0,.1);
}
.dz-method-icon { font-size: 14px; }

/* ── Fields ── */
.dz-field-group { margin-bottom: 16px; }
.dz-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.dz-req { color: var(--dz-primary, #6c3ce1); }

.dz-input {
    display: block;
    width: 100%;
    padding: 11px 14px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    color: var(--dz-text, #1a1a2e) !important;
    background: #fafafa !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
    box-sizing: border-box !important;
    outline: none !important;
    font-family: inherit !important;
    -webkit-appearance: none;
    appearance: none;
}
.dz-input:focus {
    border-color: var(--dz-primary, #6c3ce1) !important;
    box-shadow: 0 0 0 3px rgba(108,60,225,.1) !important;
    background: #fff !important;
}
.dz-input.dz-input--ok { border-color: #22c55e !important; background: #f0fdf4 !important; }

/* ── Input row (email + button side-by-side) ── */
.dz-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.dz-input-row .dz-input { flex: 1; min-width: 0; }

/* ── Password wrap ── */
.dz-pw-wrap { position: relative; display: flex; align-items: center; }
.dz-pw-wrap .dz-input { padding-right: 42px !important; }
.dz-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    display: flex;
    align-items: center;
    line-height: 0;
    transition: color .2s;
}
.dz-eye:hover { color: var(--dz-primary, #6c3ce1); }

/* ── Buttons ── */
.dz-btn-primary,
.dz-btn-submit {
    display: block;
    width: 100%;
    padding: 13px 20px !important;
    background: var(--dz-primary, #6c3ce1) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all .2s !important;
    letter-spacing: .3px !important;
    font-family: inherit !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin-top: 6px !important;
    -webkit-appearance: none;
    appearance: none;
}
.dz-btn-primary:hover,
.dz-btn-submit:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 20px rgba(108,60,225,.3) !important;
}
.dz-btn-primary:active { filter: brightness(.95) !important; }
.dz-btn-primary:disabled { opacity: .6 !important; cursor: not-allowed !important; }

.dz-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 15px;
    background: transparent;
    color: var(--dz-primary, #6c3ce1);
    border: 2px solid var(--dz-primary, #6c3ce1);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
    line-height: 1;
}
.dz-btn-secondary:hover { background: var(--dz-primary, #6c3ce1); color: #fff; }
.dz-btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.dz-btn-full { width: 100%; margin-top: 8px; }

/* ── OTP Boxes ── */
.dz-otp-step { margin-bottom: 4px; }
.dz-otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 6px 0 10px;
}
.dz-otp-box {
    width: 48px !important;
    height: 54px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--dz-primary, #6c3ce1) !important;
    background: #fafafa !important;
    outline: none !important;
    padding: 0 !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
    font-family: 'Courier New', Courier, monospace !important;
    caret-color: var(--dz-primary, #6c3ce1) !important;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box !important;
}
.dz-otp-box:focus {
    border-color: var(--dz-primary, #6c3ce1) !important;
    box-shadow: 0 0 0 3px rgba(108,60,225,.12) !important;
    background: #fff !important;
}
.dz-otp-box.dz-box-filled { border-color: var(--dz-primary, #6c3ce1) !important; background: #f5f0ff !important; }
.dz-otp-box.dz-box-ok     { border-color: #22c55e !important; background: #f0fdf4 !important; color: #16a34a !important; }
.dz-otp-box.dz-box-err    { border-color: #ef4444 !important; background: #fff5f5 !important; color: #dc2626 !important; }

/* ── Timer / Resend ── */
.dz-otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 22px;
    margin-bottom: 12px;
}
.dz-timer { font-size: 12px; font-weight: 600; color: #e55; }
.dz-resend {
    background: none;
    border: none;
    color: var(--dz-primary, #6c3ce1);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
}
.dz-resend:hover { opacity: .8; }

/* ── Remember Me ── */
.dz-remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.4;
}
.dz-remember-wrap input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--dz-primary, #6c3ce1);
    cursor: pointer; flex-shrink: 0; margin: 0;
}

/* ── T&C ── */
.dz-tnc-wrap { margin: 14px 0; }
.dz-tnc-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}
.dz-tnc-label input[type="checkbox"] {
    width: 15px; height: 15px; margin-top: 2px;
    accent-color: var(--dz-primary, #6c3ce1);
    cursor: pointer; flex-shrink: 0;
}

/* ── Messages ── */
.dz-msg {
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    margin-top: 10px;
    line-height: 1.5;
    min-height: 0;
    transition: all .2s;
}
.dz-msg:not(:empty) { padding: 10px 14px; }
.dz-msg.dz-err { background: #fff5f5; color: #dc2626; border: 1px solid #fecaca; }
.dz-msg.dz-ok  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ── Hint ── */
.dz-hint { display: block; font-size: 12px; color: #888; margin-top: 4px; }

/* ── Verified Banner ── */
.dz-verified-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 18px;
}

/* ── Links ── */
.dz-link { color: var(--dz-primary, #6c3ce1); text-decoration: none; font-weight: 600; }
.dz-link:hover { text-decoration: underline; }
.dz-text-center { text-align: center; }
.dz-mt-12 { margin-top: 12px; }

/* ── Loading spinner ── */
.dz-spin {
    display: inline-block;
    width: 13px; height: 13px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dzSpin .65s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes dzSpin { to { transform: rotate(360deg); } }

/* ── Mobile ── */
@media (max-width: 520px) {
    .dz-auth-wrap { border-radius: 0; border-left: none; border-right: none; box-shadow: none; }
    .dz-panel { padding: 20px 16px; }
    .dz-otp-box { width: 40px !important; height: 46px !important; font-size: 18px !important; }
    .dz-otp-boxes { gap: 6px; }
}
