@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: url('../215450.gif') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* Overlay escuro para legibilidade */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Ajustes Específicos para Unificar Navbar e Box */
.custom-navbar {
    max-width: 600px !important; /* Mesma largura do box */
    margin-bottom: 0 !important; /* Colar no box */
    border-radius: 10px 10px 0 0 !important; /* Arredondado só em cima */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5); /* Sombra ajustada */
}

.main-container {
    display: block; /* Remove flex center antigo */
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.create-account-box {
    background: #f2f2f2;
    width: 100%;
    max-width: 600px;
    border-radius: 0 0 4px 4px; /* Arredondado só embaixo */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    overflow: hidden;
    padding-bottom: 20px;
    margin-top: 0; /* Garantir que cola na navbar */
    border-top: none; /* Remove borda superior se houver */
}

/* Cabeçalhos de Seção */
.section-header {
    background-color: #dcdcdc;
    color: #333;
    font-weight: bold;
    padding: 8px 15px;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.section-header .arrow {
    font-size: 10px;
    margin-right: 5px;
    color: #333;
}

/* Linhas do Formulário */
.form-row {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #fff; /* Fundo branco padrão */
}

.form-row.alt-bg {
    background-color: #e6e6e6; /* Fundo cinza alternado */
}

.label-col {
    width: 150px;
    font-weight: bold;
    font-size: 13px;
    color: #000;
}

.input-col {
    flex-grow: 1;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 6px;
    border: 1px solid #3B4CCA; /* Borda azul */
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    background-color: #fff;
    color: #333;
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 3px rgba(59, 76, 202, 0.5);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

/* Captcha */
.captcha-row {
    justify-content: center;
    padding: 15px;
    background-color: #f9f9f9;
}

.captcha-image {
    background: #eee;
    border: 1px solid #ccc;
    padding: 10px 40px;
    border-radius: 2px;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 20px);
    user-select: none;
}

.captcha-hint {
    display: block;
    font-size: 11px;
    color: #333;
    margin-top: 2px;
}

/* Botão de Registro */
.submit-container {
    text-align: center;
    padding: 20px;
    background-color: #f2f2f2;
}

input[type="submit"] {
    background-color: #1a237e; /* Azul escuro */
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background-color: #283593;
}

/* Mensagens */
.success-message, .error-message {
    padding: 10px;
    margin: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media screen and (max-width: 600px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .label-col {
        width: 100%;
        margin-bottom: 5px;
    }
}