/* HinduHum Auth Pages — Scoped, theme-safe styles */

/* ── Reset ────────────────────────────────────────────────── */
.hh-auth-wrap,
.hh-auth-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Full-page centering wrapper ─────────────────────────── */
.hh-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ── Card ─────────────────────────────────────────────────── */
.hh-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 36px 32px;
    border: 1px solid #eaedf0;
}

/* ── Header ───────────────────────────────────────────────── */
.hh-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.hh-auth-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    line-height: 1;
}

.hh-auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    border: none;
    padding: 0;
}

.hh-auth-header .hh-auth-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* ── Form ─────────────────────────────────────────────────── */
.hh-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hh-field-group {
    display: flex;
    flex-direction: column;
}

.hh-field-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.hh-field-group input[type="text"],
.hh-field-group input[type="email"],
.hh-field-group input[type="password"] {
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}

.hh-field-group input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12);
    background: #fff;
}

.hh-field-group input::placeholder {
    color: #9ca3af;
}

/* ── Submit Button ────────────────────────────────────────── */
.hh-auth-submit {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 4px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}

.hh-auth-submit:hover {
    opacity: 0.92;
}

.hh-auth-submit:active {
    transform: scale(0.99);
}

.hh-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Error / Success Messages ─────────────────────────────── */
.hh-auth-errors {
    font-size: 0.88rem;
    min-height: 0;
    overflow: hidden;
    transition: all 0.2s;
    border-radius: 6px;
    padding: 0;
}

.hh-auth-errors.hh-error-visible {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    min-height: auto;
}

.hh-auth-errors.hh-success-visible {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 10px 14px;
    min-height: auto;
}

/* ── Notice (invite-only) ─────────────────────────────────── */
.hh-auth-notice {
    margin-top: 18px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.hh-auth-notice span {
    margin-right: 4px;
}

/* ── Footer ───────────────────────────────────────────────── */
.hh-auth-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}

.hh-auth-footer p {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
}

.hh-auth-footer a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .hh-auth-card {
        padding: 28px 22px 24px;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }

    .hh-auth-wrap {
        padding: 20px 0;
        min-height: auto;
    }
}
