/* My HostGrower — mhg-auth.css — Auth pages only (login, register, forgot, reset) */

/* ── Auth Wrapper ────────────────────────────────────────────────────────── */
.mhg-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ── Auth Card ───────────────────────────────────────────────────────────── */
.mhg-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(24px);
    position: relative;
    z-index: 1;
}

/* ── Auth Logo ───────────────────────────────────────────────────────────── */
.mhg-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.mhg-auth-logo .brand {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.mhg-auth-logo .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--em), var(--em3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.mhg-auth-logo .brand span { color: var(--em); }

/* ── Auth Headings ───────────────────────────────────────────────────────── */
.mhg-auth-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    text-align: center;
}
.mhg-auth-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.55;
    text-align: center;
}

/* ── Auth Footer ─────────────────────────────────────────────────────────── */
.mhg-auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 24px;
}
.mhg-auth-footer a {
    color: var(--em);
    font-weight: 500;
    text-decoration: none;
}
.mhg-auth-footer a:hover { text-decoration: underline; }

/* ── Forgot password link ────────────────────────────────────────────────── */
.mhg-auth-forgot {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.mhg-auth-forgot:hover { color: var(--em); }

/* ── Password strength indicator ────────────────────────────────────────── */
.mhg-pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.mhg-pw-strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--glass-border);
    transition: background 0.3s;
}
.mhg-pw-strength-bar.weak   { background: #ef4444; }
.mhg-pw-strength-bar.fair   { background: #f59e0b; }
.mhg-pw-strength-bar.good   { background: #3b82f6; }
.mhg-pw-strength-bar.strong { background: #22c55e; }
.mhg-pw-strength-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    text-align: right;
}

/* ── Terms checkbox ──────────────────────────────────────────────────────── */
.mhg-auth-terms {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.mhg-auth-terms a { color: var(--em); text-decoration: none; }
.mhg-auth-terms a:hover { text-decoration: underline; }

/* ── Auth back link ──────────────────────────────────────────────────────── */
.mhg-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s;
}
.mhg-auth-back:hover { color: var(--em); }
.mhg-auth-back svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ── Success state (password reset sent) ─────────────────────────────────── */
.mhg-auth-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #22c55e;
}
.mhg-auth-success-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .mhg-auth-card { padding: 28px 20px; border-radius: 18px; }
    .mhg-auth-title { font-size: 20px; }
}
