/* ============================================================
   auth.css — Styles shared by Login Page.html & Sign Up Page.html
   ============================================================ */

/* ----- Full-page centered wrapper ----- */
.auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 20% 30%, rgba(26, 82, 118, 0.08), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(230, 126, 34, 0.08), transparent 50%),
        var(--bg-light);
}

/* ----- White card ----- */
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 40px 32px;
}

/* ----- Logo / title block ----- */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo i {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    margin-bottom: 12px;
    /* Color is set per-page via inline or page-specific rule */
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

/* Signup uses accent colour */
[data-active-page="signup"] .auth-logo i {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.auth-logo h1 { font-size: var(--fs-xl); color: var(--primary-dark); font-weight: 800; }
.auth-logo p  { color: var(--text-muted); font-size: var(--fs-base); margin-top: 4px; }

/* ----- Remember / forgot row ----- */
.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-meta a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ----- Bottom "already have account?" row ----- */
.auth-link-row {
    text-align: center;
    color: var(--text-muted);
    margin-top: 18px;
    font-size: var(--fs-base);
}

.auth-link-row a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* ----- Demo credentials hint (login only) ----- */
.demo-creds {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

.demo-creds strong { color: var(--primary-dark); display: block; margin-bottom: 4px; }

/* ----- Password hint (signup only) ----- */
.pw-hint { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }

/* ----- Responsive ----- */
@media (max-width: 500px) {
    .auth-card { padding: 28px 20px; }
}
