/* pages/auth.css */


/* ---- merged from auth/auth.css ---- */
/* The legacy per-page :root block was removed here.
   It redefined --primary-color/--card-bg-color/--text-dark, and the
   palette recolor had rewritten those values to text tokens, so
   --text-dark resolved to near-white on a near-white --card-bg-color.
   base.css already defines every token these rules need. */

body.auth-page {
    background-color: var(--ink-850);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 2rem;
}

.auth-card {
    background: var(--ink-800);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--line);
    text-align: center;
}

.auth-logo {
    color: var(--text-hi);
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.auth-card h1 {
    font-size: 1.8rem;
    color: var(--text-hi);
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: var(--text-mid);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-hi);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240, 172, 63, 0.2);
}

.auth-button {
    background: var(--ink-900);
    color: var(--text-hi);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.auth-button:hover {
    background: var(--ink-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(7, 12, 20, 0.2);
}

.auth-switch-link {
    margin-top: 1.5rem;
    color: var(--text-mid);
}

.auth-switch-link a {
    color: var(--gold);
    font-weight: 500;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

.alert-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

#password-helper {
    text-align: left;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-mid);
    padding: 15px;
    background-color: var(--ink-850);
    border-radius: 8px;
    border: 1px solid var(--line);
}

#password-helper p {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: var(--text-hi);
}

#password-helper ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#password-helper li {
    transition: all 0.2s ease-in-out;
    opacity: 0.8;
}

#password-helper li::before {
    content: '✖';
    color: var(--error-color);
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 5px;
    font-weight: bold;
}

#password-helper li.valid {
    opacity: 1;
    color: var(--success-color);
    font-weight: 500;
}

#password-helper li.valid::before {
    content: '✔';
    color: var(--success-color);
}

.resend-verification-ui {
    margin: 2rem 0;
    text-align: center;
}

.resend-verification-ui p {
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-button.secondary {
    background: var(--gold);
    display: block;
    text-decoration: none;
}

.auth-button.secondary:hover {
    background: var(--gold-bright); /* A slightly darker shade of accent */
}

/* ---- moved inline from auth/register.php ---- */
.form-group.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* ====== TSMG SKIN — auth ======
   These five pages used to render with no nav and no footer, as standalone
   full-bleed cards with a hand-rolled "TSMG" text logo. They now include the
   real header/footer, so the card sits inside the normal page flow and the
   panel matches the Contact form panel exactly. */

.auth-page { background: linear-gradient(180deg, #060D1F 0%, #0A1733 100%); min-height: 100vh; }

.auth-container {
    /* no longer a card itself — it was double-boxing around .auth-card */
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    padding: 72px clamp(1.25rem, 4vw, 2.5rem) 110px;
    min-height: 0;
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    box-shadow: none;
    padding: 48px;
    box-sizing: border-box;
}
.auth-card h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-hi);
    margin: 0 0 10px;
}
.auth-card > p { color: var(--text-mid); font-size: 15px; margin: 0 0 28px; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form .auth-button { width: 100%; margin-top: 6px; }

.auth-switch-link {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-mid);
    text-align: center;
}
.auth-switch-link a { color: var(--gold); }
.auth-switch-link a:hover { color: var(--gold-bright); }

#password-helper {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    font-size: 12.5px;
    color: var(--text-faint);
}
#password-helper li { padding: 2px 0; }
#password-helper li.valid { color: var(--ok); }

.resend-verification-ui { margin-top: 18px; }
@media (max-width: 520px) {
    .auth-card { padding: 32px 24px; }
    .auth-container { padding: 40px 1.25rem 72px; }
}

/* ============================================================================
   Sign in / create account — ported from the signed-out panel in
   Dashboard.dc.html. Last layer in the file, so it wins over the older
   .auth-card rules above without !important.
   ========================================================================= */

.auth-page {
    background: linear-gradient(180deg, #060D1F 0%, #0A1733 100%);
    min-height: 100vh;
    padding: 90px 0 110px;
}

.auth-panel {
    max-width: 460px;
    margin: 0 auto;
    color: var(--text-hi);
}
.auth-panel .kicker {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 18px;
    text-align: center;
}
.auth-panel h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 12px;
    text-align: center;
    color: var(--text-hi);
}
.auth-panel h1 em { font-style: italic; color: var(--gold); }
.auth-lead {
    font-size: 14.5px;
    color: var(--text-faint);
    line-height: 1.6;
    text-align: center;
    margin: 0 0 36px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-tab {
    font-size: 14.5px;
    padding: 12px 22px;
    margin-bottom: -1px;
    color: var(--text-faint);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.auth-tab:hover { color: var(--text-mid); }
.auth-tab.active { color: var(--text-hi); border-bottom-color: var(--gold); }

.auth-error {
    font-size: 13.5px;
    color: #E8A0A0;
    border: 1px solid rgba(232, 160, 160, 0.4);
    background: rgba(232, 160, 160, 0.07);
    padding: 12px 16px;
    margin-bottom: 20px;
}
.auth-resend {
    border: 1px solid rgba(159, 187, 234, 0.35);
    background: rgba(159, 187, 234, 0.06);
    padding: 18px 20px;
    margin-bottom: 22px;
}
.auth-resend p { font-size: 13.5px; color: var(--text-mid); line-height: 1.6; margin: 0 0 14px; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.auth-field > span {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.auth-field input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-hi);
    outline: none;
    box-sizing: border-box;
    width: 100%;
    transition: border-color .2s;
}
.auth-field input:focus { border-color: var(--gold); }
.auth-field input::placeholder { color: #4A5A7A; }

.auth-rules {
    list-style: none;
    margin: -6px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: var(--text-faint);
}
.auth-rules li::before { content: '— '; color: var(--gold); }

.auth-submit {
    margin-top: 6px;
    background: var(--text-hi);
    color: var(--ink-950);
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 0;
    border-radius: 999px;
    width: 100%;
    cursor: pointer;
    transition: background .2s;
}
.auth-submit:hover { background: var(--gold); }
.auth-submit:disabled { background: rgba(255, 255, 255, 0.2); color: var(--text-faint); cursor: not-allowed; }

.auth-foot {
    font-size: 12.5px;
    color: #5A6B8F;
    line-height: 1.6;
    text-align: center;
    margin: 20px 0 0;
}
.auth-foot a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(159, 187, 234, 0.5); }

@media (max-width: 520px) {
    .auth-page { padding: 56px 0 72px; }
    .auth-panel h1 { font-size: 30px; }
    .auth-tab { padding: 12px 16px; font-size: 13.5px; }
}
