/* =========================
   IMFREENOW — AUTH PAGES (dark)
   Shared by /login, /signup, /forgot-password
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #f4f4f5;
    background: #09090b;
    line-height: 1.6;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 420px;
    background: radial-gradient(
        ellipse at center,
        rgba(77, 141, 255, 0.14),
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

:root {
    --blue: #4d8dff;
    --blue-deep: #075ee8;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --surface: #121215;
    --surface-2: #1a1a20;
    --serif: Georgia, "Times New Roman", serif;
    --red: #ff6b6b;
    --green: #34d399;
}


/* =========================
   NAV
========================= */

.navbar {
    position: relative;
    z-index: 1;
}

.nav-container {
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--blue);
}


/* =========================
   LAYOUT
========================= */

.dashboard-page,
.signup-page {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 20px 64px;
}

.dashboard-container,
.signup-container {
    width: 100%;
    max-width: 480px;
}

.signup-container {
    max-width: 560px;
}


/* =========================
   CARD
========================= */

.access-card,
.signup-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.access-header,
.card-header {
    text-align: center;
    margin-bottom: 28px;
}

.access-logo,
.brand-mark {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-deep);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(7, 94, 232, 0.4);
    text-decoration: none;
}

.success-logo {
    background: var(--green);
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35);
}

.access-eyebrow,
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.access-header h1,
.card-header h1 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.access-description,
.card-sub {
    font-size: 14px;
    color: var(--muted);
}


/* =========================
   FORM
========================= */

.dashboard-form .form-group,
.field {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text);
}

.form-input,
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
    color: #63636b;
}

.form-input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.18);
}

.field select {
    appearance: none;
    cursor: pointer;
}

.field textarea {
    min-height: 84px;
    resize: vertical;
}

.password-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-row label {
    margin-bottom: 7px;
}

.show-password,
.password-toggle {
    background: none;
    border: none;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 7px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.password-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.forgot-row {
    text-align: right;
    margin: -6px 0 18px;
}

.forgot-row a {
    font-size: 13px;
    color: var(--blue);
    font-weight: 600;
}

.username-wrapper {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.username-wrapper:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.18);
}

.username-prefix {
    padding: 0 4px 0 15px;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

.username-wrapper input {
    border: none;
    background: transparent;
    box-shadow: none;
    padding-left: 0;
}

.username-wrapper input:focus {
    box-shadow: none;
    border: none;
}

.username-status {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    min-height: 18px;
}

.step.completed {
    color: var(--blue);
}

.step.completed .step-number {
    background: rgba(77, 141, 255, 0.15);
    border-color: var(--blue);
    color: var(--blue);
}

.username-status.checking {
    color: #d9a441;
}

.username-status.available {
    color: var(--green);
    font-weight: 600;
}

.username-status.taken {
    color: #ff8a8a;
    font-weight: 600;
}

.character-count {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    margin-top: 4px;
}

.terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    margin: 4px 0 18px;
    cursor: pointer;
}

.terms input {
    margin-top: 3px;
    accent-color: var(--blue-deep);
}

.terms a {
    color: var(--blue);
}


/* =========================
   BUTTONS
========================= */

.access-button,
.primary-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background: var(--blue-deep);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(7, 94, 232, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.access-button:hover,
.primary-button:hover {
    background: #0a6bff;
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(7, 94, 232, 0.55);
}

.access-button:disabled,
.primary-button:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.button-row {
    display: flex;
    gap: 12px;
}

.back-button {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.create-button {
    flex: 1;
}

.link-button {
    background: none;
    border: none;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.resend-note {
    text-align: center;
    margin-top: 18px;
}


/* =========================
   MESSAGES / STATES
========================= */

.form-message,
.form-error {
    display: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.form-message.show,
.form-error.show {
    display: block;
}

.form-message.error,
.form-error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8a8a;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.form-message.info {
    background: rgba(77, 141, 255, 0.1);
    color: var(--blue);
    border: 1px solid rgba(77, 141, 255, 0.3);
}

.form-message.ok {
    background: rgba(52, 211, 153, 0.1);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.field-error {
    font-size: 12px;
    color: #ff8a8a;
    margin-top: 6px;
    min-height: 16px;
}

.success-state {
    display: none;
}

.success-state.show {
    display: block;
}


/* =========================
   STEPS (signup)
========================= */

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.step.active {
    color: var(--text);
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 13px;
}

.step.active .step-number {
    background: var(--blue-deep);
    border-color: var(--blue-deep);
    color: #fff;
}

.step-line {
    width: 48px;
    height: 1px;
    background: var(--border);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.verify-head {
    text-align: center;
    margin-bottom: 24px;
}

.verify-head h1 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}


/* =========================
   FOOTNOTES
========================= */

.first-time,
.login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
}

.first-time a,
.login-link a {
    color: var(--blue);
    font-weight: 600;
}

.trust-row {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 20px;
}

.trust-row span {
    margin: 0 8px;
    opacity: 0.5;
}


/* What happens after signup (under the card) */

.what-next {
    margin: 22px auto 0;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.what-next-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #d4d4d8;
}

.what-next-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #f4f4f5;
}

.what-next-step p {
    margin: 0;
    padding-top: 2px;
}


/* =========================
   FOOTER
========================= */

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 28px 24px;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.copyright {
    max-width: 1180px;
    margin: 16px auto 0;
    font-size: 12px;
    color: var(--muted);
}

.admin-link {
    color: var(--muted);
    margin-left: 12px;
}

.admin-link:hover {
    color: var(--text);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 560px) {
    .access-card,
    .signup-card {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .access-header h1,
    .card-header h1 {
        font-size: 26px;
    }

    .button-row {
        flex-direction: column;
    }
}
