/* ══════════════════════════════════════════════════════════════════════════════
   REGISTER PAGE — page-specific additions only
   Requires: style.css (tokens, reset, layout, buttons, forms)
             login.css  (login-wrap, login-logo, login-card, field, login-btn)
   This file adds only three things not present in either parent:
     1. Wider card + wider wrap for the extra fields
     2. Two-column name row
     3. Password strength meter
     4. Success state
══════════════════════════════════════════════════════════════════════════════ */

/* ── Slightly wider wrap & card for the extra form fields ───────────────────── */
.register-wrap {
    max-width: 480px; /* login-wrap caps at 420px — a touch more room here */
}

/* ── Two-column name row ────────────────────────────────────────────────────── */
.reg-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Collapse to single column on small screens */
@media (max-width: 480px) {
    .reg-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ── Password strength meter ────────────────────────────────────────────────── */
.reg-strength-bar {
    height: 3px;
    background: var(--border-subtle);
    border-radius: 99px;
    margin-top: 7px;
    overflow: hidden;
}

.reg-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 0.3s ease, background 0.3s ease;
}

.reg-strength-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 4px;
    min-height: 1em; /* prevent layout shift when empty */
    transition: color 0.3s ease;
}

/* ── Success state ──────────────────────────────────────────────────────────── */
.reg-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0 4px;
}

.reg-success__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-dim, rgba(0, 212, 170, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    margin-bottom: 20px;
    animation: icon-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.1s;
}

/* Reuse the pop keyframe from forgot-password.css if loaded, else define it */
@keyframes icon-pop {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1);   }
}

.reg-success__icon svg {
    width: 26px;
    height: 26px;
}

.reg-success__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 300px;
    font-weight: 300;
    margin-bottom: 24px;
}

/* The CTA reuses .login-btn — just needs to be a block link */
.reg-success__cta {
    display: inline-flex;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}
