/* =========================
   Register Form
   ========================= */
.register-form {
    max-width: 450px;
    margin: 3rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.register-form h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

.register-form label {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-main);
    font-size: 0.95rem;
}

.register-form input[type="text"]:focus,
.register-form input[type="email"]:focus,
.register-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

.register-form input[type="submit"] {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.7rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.register-form input[type="submit"]:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.success {
    color: var(--ok);
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.error {
    color: var(--warn);
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.login-link {
    margin-top: 1rem;
    text-align: center;
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-link a:hover {
    text-decoration: underline;
}
