/* register.css */
@import url('/styles.css');

/* Full-page gradient background — matches login */
body {
    background: linear-gradient(145deg, #f0f9ff 0%, #e8f4fd 50%, #eff6ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* Outer wrapper — logo above card */
.register-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo above the card */
.logo {
    width: 100px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.07));
    display: block;
}

/* The card */
.container {
    width: 100%;
    background: var(--color-surface, #fff);
    border-radius: var(--radius-xl, 20px);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.09));
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 32px 28px 28px;
}

/* Page title */
h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Labels */
label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted, #64748b);
    margin-bottom: 2px;
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="password"] {
    min-height: 48px;
    font-size: 16px;
    border-radius: var(--radius-sm, 8px);
    padding: 12px 14px;
}

/* Cloudflare Turnstile */
.cf-turnstile {
    margin: 16px 0;
}

/* Submit button */
button[type="submit"] {
    width: 100%;
    background: var(--color-primary, #2563eb);
    color: white;
    padding: 14px;
    border-radius: var(--radius-sm, 8px);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast, 150ms ease), transform var(--transition-fast, 150ms ease);
    min-height: 52px;
    margin-top: 8px;
}

button[type="submit"]:hover {
    background: var(--color-primary-dark, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Message area */
p {
    color: var(--color-text-muted, #64748b);
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

p a {
    color: var(--color-primary, #2563eb);
    font-weight: 600;
}

/* Error messages */
.message {
    color: var(--color-danger, #dc2626);
    font-size: 13px;
    background: #fef2f2;
    border-left: 3px solid var(--color-danger, #dc2626);
    padding: 10px 12px;
    border-radius: var(--radius-xs, 4px);
    text-align: left;
    margin: 8px 0;
    font-weight: 500;
}

/* Login link */
.login-link {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: var(--color-text-muted, #64748b);
}

.login-link a {
    font-weight: 600;
    color: var(--color-primary, #2563eb);
}

/* Divider */
.divider {
    height: 1px;
    background: var(--color-border, #e2e8f0);
    margin: 20px 0;
}

@media (max-width: 400px) {
    .container {
        padding: 24px 20px 20px;
        border-radius: var(--radius-lg, 16px);
    }

    h1 {
        font-size: 21px;
    }
}
