/* =====================================================================
   Solar Tracker - Login / Sign Up card pages (login.php, signup.php)
   Colors match assets/css/theme.css
   ===================================================================== */
:root {
    --st-sun: #f59e0b;
    --st-sun-2: #f97316;
    --st-ink: #1f2937;
    --st-muted: #6b7280;
    --st-line: #e6e9f0;
    --st-navy: #0f172a;
}

* { box-sizing: border-box; }

body.st-auth {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: 'Muli', 'Segoe UI', Arial, sans-serif;
    color: var(--st-ink);
    background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(30,58,138,.75)), url("../../images/back.jpg") center / cover no-repeat fixed;
    background-color: var(--st-navy);
}

/* ---------- Card ---------- */
.st-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 30px 30px 26px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    border-top: 5px solid var(--st-sun);
}
.st-auth-card.st-wide { max-width: 640px; }

.st-auth-logo { text-align: center; margin-bottom: 10px; }
.st-auth-logo img { max-width: 170px; height: auto; }

.st-auth-title { text-align: center; margin: 6px 0 4px; font-size: 22px; font-weight: 800; }
.st-auth-sub { text-align: center; margin: 0 0 22px; color: var(--st-muted); font-size: 14px; }

/* ---------- Fields ---------- */
.st-field { margin-bottom: 14px; }
.st-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--st-muted); }
.st-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d6dbe4;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 14px;
    color: var(--st-ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.st-field input:focus {
    outline: 0;
    border-color: var(--st-sun);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,.2);
}
.st-field input::placeholder { color: #9ca3af; }

.st-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.st-grid-2 .st-full { grid-column: 1 / -1; }

#email_status { display: block; margin-top: 4px; font-size: 12px; color: #dc2626; text-align: right; }
#email_status:empty { display: none; }

/* ---------- Button + footer ---------- */
.st-auth-btn {
    width: 100%;
    margin-top: 6px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, var(--st-sun), var(--st-sun-2));
    box-shadow: 0 8px 18px rgba(245,158,11,.35);
    transition: transform .15s;
}
.st-auth-btn:hover { transform: translateY(-1px); }

.st-auth-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--st-muted); }
.st-auth-foot a { color: var(--st-sun-2); font-weight: 700; text-decoration: none; }
.st-auth-foot a:hover { text-decoration: underline; }

/* number fields without spinners (signup) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 560px) {
    .st-auth-card { padding: 24px 18px 20px; }
    .st-grid-2 { grid-template-columns: 1fr; }
}
