/* ============================
   ESTILO BASE (mobile-first)
============================ */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

/* HEADER */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0077ff;
    text-decoration: none;
}

.logo span {
    color: #1a1a1a;
}

/* FORM */
.register {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.form-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    transform: translateY(30px);
    animation: slideUp 0.9s ease forwards;
}

.form-container h1 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #0077ff;
}

.checkbox-group {
    font-size: 0.9rem;
}

.checkbox-group a {
    color: #0077ff;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* BOTÃO */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0077ff;
    color: #fff;
}

.btn-primary:hover:enabled {
    background: #005ed1;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* LINK DE LOGIN */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.login-link a {
    color: #0077ff;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease;
}

.modal-content .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.modal-content p {
    color: #555;
    margin-bottom: 1.5rem;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* RESPONSIVO */
@media (min-width: 768px) {
    .form-container {
        padding: 3rem;
    }
}
