/* Reset básico */
body, h1, h2, p, label {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #c8d6df;
}

/* Estrutura principal */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Lado esquerdo */
.auth-left {
    flex: 1;
    background: linear-gradient(to bottom, #1a3a8a, #1e40af);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-left .logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.auth-left h1 {
    font-size: 2rem;
    font-weight: bold;
}

/* Lado direito */
.auth-right {
    flex: 1;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Formulários */
.login-form, .register-form, .reset-form {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.login-form h2,
.register-form h2,
.reset-form h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #1a2e44;
}

.login-form p,
.register-form p,
.reset-form p {
    margin-bottom: 20px;
    color: #555;
}

/* Campos */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 9999px;
    outline: none;
    transition: border-color 0.2s ease;
    font-size: 16px; /* evita zoom automático no iOS */
}

.form-control:focus {
    border-color: #1a2e44;
}

/* Botões */
.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #1a2e44;
    border: none;
    color: #fff;
    border-radius: 9999px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.btn-primary:hover {
    background-color: #111e2d;
    transform: scale(1.02);
}

/* Links */
a {
    color: #1a3a8a;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Checkbox + link de senha */
.form-group.d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Erros de validação */
.text-red-600, .error-msg {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* ================================
   RESPONSIVO — CELULAR
   ================================ */
@media (max-width: 768px) {

    /* Empilha lado esquerdo em cima */
    .auth-container {
        flex-direction: column;
        min-height: 100vh;
    }

    /* Lado esquerdo vira banner compacto no topo */
    .auth-left {
        flex: none;
        padding: 24px 20px;
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        border-radius: 0 0 24px 24px;
    }

    .auth-left .logo {
        max-width: 48px;
        margin-bottom: 0;
    }

    .auth-left h1 {
        font-size: 1.4rem;
    }

    /* Lado direito ocupa o restante */
    .auth-right {
        flex: 1;
        padding: 24px 16px;
        align-items: flex-start;
    }

    /* Formulário ocupa toda a largura */
    .login-form, .register-form, .reset-form {
        padding: 24px 20px;
        border-radius: 1.2rem;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }

    .login-form h2,
    .register-form h2,
    .reset-form h2 {
        font-size: 1.3rem;
    }

    /* Inputs maiores para toque fácil */
    .form-control {
        padding: 14px 16px;
        font-size: 16px;
    }

    .btn-primary {
        padding: 16px;
        font-size: 16px;
    }

    /* Checkbox e link em coluna no mobile */
    .form-group.d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}