/* === VARIÁVEIS GLOBAIS - CLUBE DE ESCRITORES === */
:root {
    /* Cores principais */
    --fundo-principal: #F7F5F2;
    --fundo-cartao: #FFFFFF;
    --texto-principal: #202020;
    --texto-secundario: #7B756E;

    /* Cores institucionais */
    --azul-institucional: #214F8F;
    --vermelho-institucional: #AF1E35;
    --verde-institucional: #278B53;
    --laranja: #C96516;
    --roxo: #65278E;

    /* Bordas e elementos */
    --borda-suave: #EAE6DF;
    --bege-claro: #F7F5F2;

    /* Tipografia */
    --font-principal: 'Montserrat', Arial, sans-serif;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-principal);
    background-color: var(--fundo-principal);
    color: var(--texto-principal);
    line-height: 1.6;
}

/* === CONTAINER LOGIN/CADASTRO === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    background: var(--fundo-cartao);
    border-radius: 16px;
    border: 1px solid var(--borda-suave);
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* === CABEÇALHO DO FORMULÁRIO === */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--azul-institucional);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--texto-principal);
    margin-bottom: 8px;
}

.auth-header .subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--texto-secundario);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-header .welcome-text {
    font-size: 15px;
    color: var(--texto-secundario);
    margin-top: 12px;
    font-weight: 400;
}

/* === ETIQUETA === */
.auth-label {
    display: inline-block;
    background: var(--azul-institucional);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* === FORMULÁRIO === */
.auth-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--texto-principal);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-principal);
    color: var(--texto-principal);
    background: var(--fundo-cartao);
    border: 1px solid var(--borda-suave);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-institucional);
    box-shadow: 0 0 0 3px rgba(33, 79, 143, 0.1);
}

.form-group input::placeholder {
    color: #B8B3AB;
}

/* === CHECKBOX === */
.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--texto-secundario);
    cursor: pointer;
}

/* === BOTÕES === */
.btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-principal);
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--azul-institucional);
    color: white;
}

.btn-primary:hover {
    background: #1a3f75;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(33, 79, 143, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--azul-institucional);
    border: 2px solid var(--azul-institucional);
}

.btn-secondary:hover {
    background: var(--azul-institucional);
    color: white;
}

/* === LINKS === */
.auth-links {
    text-align: center;
    margin-top: 30px;
}

.auth-links p {
    font-size: 14px;
    color: var(--texto-secundario);
    margin-bottom: 12px;
}

.auth-links a {
    color: var(--azul-institucional);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #1a3f75;
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 24px;
}

.forgot-password a {
    font-size: 13px;
    color: var(--azul-institucional);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* === DIVISOR === */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--borda-suave);
}

.auth-divider span {
    padding: 0 20px;
    font-size: 13px;
    color: var(--texto-secundario);
    font-weight: 500;
}

/* === MENSAGENS === */
.auth-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-message.success {
    background: #E8F5E9;
    color: var(--verde-institucional);
    border: 1px solid #A5D6A7;
}

.auth-message.error {
    background: #FFEBEE;
    color: var(--vermelho-institucional);
    border: 1px solid #EF9A9A;
}

.auth-message.info {
    background: #E3F2FD;
    color: var(--azul-institucional);
    border: 1px solid #90CAF9;
}

/* === VOLTAR PARA HOME === */
.back-to-home {
    text-align: center;
    margin-top: 30px;
}

.back-to-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--texto-secundario);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-to-home a:hover {
    color: var(--azul-institucional);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .auth-container {
        padding: 40px 30px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-page {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }

    .btn {
        padding: 14px 24px;
    }
}