* {
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 28%),
        linear-gradient(180deg, #f7f7f8 0%, #efefef 100%);
    color: #1f2937;
    margin: 0;
    min-height: 100vh;
    padding: 32px;
}

main {
    width: 100%;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-page {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 48px 40px;
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
    width: min(440px, 100%);
    border: 1.5px solid rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.form-title {
    margin: 0;
    font-family: 'Sora', 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #222;
    letter-spacing: -0.03em;
}

.signup-form,
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-weight: 600;
    color: #222;
    letter-spacing: -0.01em;
}

.text-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1.05rem;
    background: #f8fafc;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.text-input:focus {
    border-color: #2563eb;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.primary-button {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #2563eb 0%, #ff7a18 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.12rem;
    font-weight: 700;
    margin-top: 6px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.primary-button:hover {
    background: linear-gradient(90deg, #1e40af 0%, #ff7a18 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.primary-button:active {
    transform: translateY(1px);
}

.divider {
    margin: 10px 0 6px;
    color: #6b7280;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}

.subtext {
    font-size: 0.95rem;
    color: #4b5563;
    text-align: center;
}

.subtext a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.subtext a:hover {
    text-decoration: underline;
}

.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 18px;
    color: #222;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: box-shadow 0.2s, border 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.google-button:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.10);
}

.google-button:focus-visible {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Shared header styling to match other pages */
header {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 40px;
    padding: 18px 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.brand-mark {
    font-family: 'Sora', 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.04em;
    padding: 10px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.16), rgba(37, 99, 235, 0.12));
    text-decoration: none;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

header nav ul li { list-style: none; }
header nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1f2937;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-actions nav { flex: 1 1 auto; }

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 260px;
    flex: 0 0 280px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    margin-left: auto;
}

.search-input {
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    padding: 4px 6px;
    width: 100%;
}

.search-input::placeholder { color: #9ca3af; }

.footer-note {
    margin: 36px auto 10px;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Ajustements responsives */
@media (max-width: 600px) {
    body {
        padding: 16px;
    }
    .form-card {
        padding: 32px 22px;
        gap: 14px;
    }
    .primary-button,
    .google-button {
        font-size: 1.02rem;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    body {
        padding: 24px;
    }
    .form-card {
        padding: 38px 30px;
    }
}

@media (min-width: 1400px) {
    .form-card {
        padding: 56px 46px;
    }
}
