﻿/* ==========================================================================
   Trang /register - phần riêng (khung chung nằm ở css/auth.css)
   ========================================================================== */

/* Thanh đánh giá độ mạnh mật khẩu */
.auth-strength {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-strength-bar {
    height: 5px;
    border-radius: 999px;
    background: #eef1f5;
    overflow: hidden;
}

.auth-strength-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #dc2626;
    transition: width .25s ease, background .25s ease;
}

.auth-strength-text {
    color: var(--ui-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.auth-strength.is-weak .auth-strength-fill {
    background: #dc2626;
}

.auth-strength.is-medium .auth-strength-fill {
    background: #d97706;
}

.auth-strength.is-strong .auth-strength-fill {
    background: #16a34a;
}

.auth-strength.is-weak .auth-strength-text {
    color: #dc2626;
}

.auth-strength.is-medium .auth-strength-text {
    color: #b45309;
}

.auth-strength.is-strong .auth-strength-text {
    color: #15803d;
}

/* reCAPTCHA */
.auth-recaptcha {
    display: flex;
    justify-content: center;
    padding: 2px 0;
}

.auth-recaptcha .g-recaptcha {
    transform-origin: center top;
}

/* Ghi chú cuối trang */
.auth-register-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--ui-muted);
    font-size: 12.5px;
    line-height: 19px;
}

.auth-register-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 2px;
    color: var(--ui-accent);
}

.auth-register-note strong {
    color: var(--ui-text);
    font-weight: 700;
}

[data-color-mode="dark"] .auth-strength-bar {
    background: var(--ui-border);
}

[data-color-mode="dark"] .auth-register-note {
    background: var(--ui-page);
    border-color: var(--ui-border-strong);
}

@media (max-width: 620px) {
    .auth-recaptcha {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .auth-recaptcha .g-recaptcha {
        transform: scale(.9);
    }
}
