/* =========================================================================
   account/account.css — styles that ONLY belong to the user's account:
   create account (password requirements), login (resend verification),
   and the My Account settings dialog.
   The shared overlay/dialog/form/message system lives in core/base.css.
   ========================================================================= */

/* ---------- Create Account: password requirement indicators ---------- */
.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

.password-requirements span {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.password-requirements ul {
    margin: 0;
    padding-left: 16px;
}

.requirement {
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.requirement-met {
    color: #10b981;
    position: relative;
}

.requirement-met::before {
    content: "✓";
    position: absolute;
    left: -16px;
}

/* ---------- Dialog footer links (switch login/register) ---------- */
.form-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.form-footer a {
    color: #2563eb;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ---------- Login: resend-verification link ---------- */
.error-message a.resend-verification {
    color: #0369a1;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}

.error-message a.resend-verification:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Animated loading dots for the "Sending verification email... Please wait" state */
.sending-verification::after {
    content: "...";
    display: inline-block;
    width: 16px;
    text-align: left;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: "."; }
    40%, 60% { content: ".."; }
    80%, 100% { content: "..."; }
}

/* ---------- My Account settings dialog ---------- */
.setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #1f2937;
}

.setting-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.setting-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 8px;
}
