/* ===== CSS Custom Properties ===== */
:root {
    --accent: #6366f1;
    --accent-light: #eef2ff;
    --accent-hover: #eff6ff;
    --gray-header: #e8e8ed;
    --gray-border: #e5e7eb;
    --gray-mid: #6b7280;
    --text: #111827;
    --bg: #f8f9fa;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--bg);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    color: var(--text);
    margin: 0;
}

/* ===== Sign up layout ===== */
.signup-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.signup-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
    padding: 32px 28px;
    width: 100%;
    max-width: 420px;
}

.signup-logo {
    display: block;
    max-width: 96px;
    height: auto;
    margin: 0 auto 20px;
}

.signup-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 4px;
}

.signup-subtitle {
    text-align: center;
    color: var(--gray-mid);
    font-size: 15px;
    margin: 0 0 16px;
}

.signup-gdpr {
    font-size: 12px;
    color: var(--gray-mid);
    background: var(--accent-light);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ===== Sign in top bar ===== */
.signup-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    background: var(--accent-light);
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 0 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.signup-signin-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.signup-signin-btn:hover { background: #4f46e5; }

.signup-gdpr a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* ===== Terms modal (custom) ===== */
.terms-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.terms-overlay.is-open { display: flex; }

.terms-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.2);
}

.terms-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.terms-content {
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 16px;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
    .signup-card {
        padding: 24px 20px;
        box-shadow: none;
    }
}
