/* ============================================
   CADASTRO - CSS REFATORADO
   Padrão unificado com outras telas
   ============================================ */

/* ============================================
   FUNDO E ESTRUTURA
   ============================================ */
html, body {
    background: linear-gradient(135deg, #C41E3A 0%, #003366 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* ============================================
   CONTAINER DE CADASTRO
   ============================================ */
.cadastro {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TÍTULO
   ============================================ */
.cadastro h2 {
    color: #C41E3A;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================
   FORMULÁRIO
   ============================================ */
#cadastroForm {
    margin-top: 20px;
}

.cadastro label {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
    margin-top: 18px;
}

.cadastro label:first-of-type {
    margin-top: 0;
}

.cadastro input,
.cadastro select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.cadastro input:focus,
.cadastro select:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

/* ============================================
   BOTÕES
   ============================================ */
.cadastro button[type="submit"] {
    width: 100%;
    padding: 14px;
    margin-top: 25px;
    background: linear-gradient(135deg, #C41E3A 0%, #003366 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.cadastro button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.cadastro button[type="submit"]:active {
    transform: translateY(0);
}

.cadastro .link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #C41E3A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cadastro .link:hover {
    color: #003366;
    text-decoration: underline;
}

/* ============================================
   MENSAGENS
   ============================================ */
.mensagem-erro {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
    font-size: 14px;
    text-align: left;
}

.mensagem-sucesso {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
    font-size: 14px;
    text-align: left;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .cadastro {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .cadastro h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .cadastro {
        padding: 25px 20px;
    }
}

