/* =========================================================
   TeenNovel_WED — quen-matkhau.css
   Bổ sung thêm cho auth.css (không thay thế)
   ========================================================= */

/* ── MÔ TẢ TRANG ── */
.auth-desc {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 20px;
}
.auth-email-highlight {
    color: #d8b4fe;
    font-weight: 700;
}

/* ── ALERT SUCCESS (thêm màu xanh) ── */
.auth-alert--success {
    background: rgba(21,128,61,.12);
    border: 1px solid rgba(74,222,128,.3);
    color: #4ade80;
}

/* ── OTP BOXES ── */
.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}
.otp-box {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: #080812;
    color: #f3e8ff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.otp-box:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,.15);
}

/* ── GỬI LẠI MÃ ── */
.auth-resend {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.4);
    margin: 4px 0 14px;
}
.auth-resend-btn {
    background: none;
    border: none;
    color: #a855f7;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}
.auth-resend-btn:disabled {
    color: rgba(255,255,255,.25);
    cursor: not-allowed;
    text-decoration: none;
}
#resendTimer {
    color: rgba(255,255,255,.3);
}

/* ── ĐƯỜNG QUAY LẠI ── */
.auth-switch a i { margin-right: 4px; }

/* =========================================================
   POPUP THÀNH CÔNG — dấu tích xanh
   ========================================================= */
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.65);
    align-items: center;
    justify-content: center;
}
.success-overlay.show { display: flex; }

.success-box {
    background: #0f0f1a;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    animation: successPop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes successPop {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── DẤU TÍCH ANIMATE ── */
.success-check {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
}
.success-check-svg {
    width: 100%;
    height: 100%;
}
.success-check-circle {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circleDraw .5s ease-in-out forwards;
}
.success-check-mark {
    stroke: #22c55e;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkDraw .3s .5s ease-in-out forwards;
}
@keyframes circleDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-size: 18px;
    font-weight: 700;
    color: #f3e8ff;
    margin: 0 0 8px;
}
.success-msg {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin: 0 0 20px;
    line-height: 1.6;
}
.success-btn {
    display: inline-flex;
    text-decoration: none;
    width: 100%;
}

/* ── RESPONSIVE ── */
@media (max-width: 400px) {
    .otp-box { width: 38px; height: 46px; font-size: 18px; }
    .otp-boxes { gap: 6px; }
}
