/* Shared styles for login, signup and terms pages */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1f2937;
}

.card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card.wide {
    max-width: 760px;
}

.card h1 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.7rem;
}

.card .subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

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

.row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.checkbox-group input {
    margin-top: 3px;
}

.checkbox-group label {
    font-weight: normal;
    margin: 0;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.options label {
    display: inline;
    font-weight: normal;
}

button,
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

button:hover,
.btn:hover {
    background: #4338ca;
}

a {
    color: #4f46e5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.92rem;
    color: #6b7280;
}

.message {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: none;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}

/* Terms page */
.terms-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.terms-content h2 {
    margin: 18px 0 6px;
    font-size: 1.1rem;
}

.terms-content p,
.terms-content ul {
    margin-bottom: 10px;
}

.terms-content ul {
    padding-left: 22px;
}

@media (max-width: 480px) {
    .card {
        padding: 28px 20px;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }
}
