/*signup.css
AI Heavy*/

body {
    min-height: 100vh;
    background-color: #0F1117;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
}

/* ── Subtle grid texture on the page background ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ── Signup card ────────────────────────────────── */
.signup-card {
    position: relative;
    z-index: 1;
    background: #1A1D27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 400px;
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.1),
        0 24px 48px rgba(0, 0, 0, 0.4);
}

/* ── Header ─────────────────────────────────────── */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.header img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #252836;
    object-fit: contain;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.header h1 {
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
}

.header p.subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.1rem;
}

/* ── Form ───────────────────────────────────────── */
#signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row label {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-row input {
    background: #252836;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
}

.form-row input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-row input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-row input:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

/* ── Submit button ──────────────────────────────── */
button[type="submit"] {
    margin-top: 0.5rem;
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
    width: 100%;
    letter-spacing: 0.01em;
}

button[type="submit"]:hover {
    background-color: #6d28d9;
}

button[type="submit"]:active {
    transform: scale(0.985);
}

/* ── Login CTA ──────────────────────────────────── */
.login-cta {
    margin-top: 0.25rem;
    text-align: center;
}

.login-cta p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.login-cta a {
    color: #A78BFA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.login-cta a:hover {
    color: #c4b5fd;
}

/* ── Divider ────────────────────────────────────── */
.form-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0.5rem 0 0;
}

/* ── Password requirements ──────────────────────── */
.password-rules {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #252836;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    margin-top: 0.25rem;
}

.password-rules p {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    font-weight: 500;
}

/* dot indicator before each rule */
.password-rules p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.2s;
}