/* register.php page-specific styles. Tokens come from landing.css.

   The dark body + nav + minimal footer below match auth-login.css
   rule-for-rule on purpose, so register.php reads as part of the same
   auth flow instead of its old disconnected light-gray shell. .logo-mark
   is landing.css's shared icon+wordmark as-is; .logo's text color is
   overridden to white below since landing.css's default navy is meant
   for the white marketing nav. */

body {
    background: var(--ink);
    color: #cbd5e1;
    line-height: 1.6;
    min-height: 100vh; display: flex; flex-direction: column;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
nav { border-bottom: 1px solid rgba(255,255,255,0.16); }
/* Centered header, matching auth-login.css — without these, the nav falls
   back to landing.css's marketing defaults (navy text), illegible on this
   page's dark body. */
nav .container { padding: 22px 24px; }
.nav-content { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.logo { color: white; }
.nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; }
.nav-links a:hover { color: white; }
.register-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
footer { background: transparent; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1); }

.register-container {
    width: 100%;
    max-width: 480px;
    padding: 40px 24px;
}

.register-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 42px 38px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

h1 {
    font-size: 26px;
    color: var(--navy);
    margin: 0 0 8px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--ash);
    margin-bottom: 28px;
    font-size: 15px;
}

/* === Account type tabs === */
.account-tabs {
    display: flex;
    background: var(--surface);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 28px;
    gap: 4px;
}

.account-tab {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ash);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.account-tab.active {
    background: var(--ink);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
    background: var(--white);
}

textarea { resize: vertical; min-height: 80px; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(169,123,51,0.12);
}

.btn {
    width: 100%;
    padding: 15px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #7a5a26;
}

/* Submit feedback while the POST round trip is in flight — see
   register.js. Same convention as auth-login.css's .login-submit:disabled. */
.btn:disabled {
    background: #a8a29e;
    cursor: not-allowed;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14.5px;
    color: var(--ash);
}

.footer-text a {
    color: var(--green-text);
    font-weight: 600;
    text-decoration: none;
}

.invite-notice, .beta-notice {
    background: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.beta-notice {
    background: #fef3c7;
    color: #7c5a10;
    text-align: left;
    line-height: 1.5;
}

.org-fields {
    border-top: 1px dashed var(--line);
    padding-top: 20px;
    margin-top: 4px;
}

.org-fields-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.pending-result {
    text-align: center;
}

.pending-result h2 {
    color: var(--navy);
    font-size: 22px;
    margin: 0 0 12px;
}

.pending-result p {
    color: var(--ash);
    font-size: 15px;
    line-height: 1.6;
}
