/* Reset e configurações base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Imagem de background */
    background-image: url("/static/images/centro-cultural-pb.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    /* Fallback caso a imagem não carregue */
    background-color: #0F4593;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    line-height: 1.6;
}

.container {
    background: linear-gradient(135deg, #0D7A92 0%, #0F4593 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 100%;
    max-width: 480px;
    margin: 2rem;
}

.container-login {
    max-width: 450px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.container-terms {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Seção de logo */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    margin-bottom: 1rem;
}

.logo svg {
    filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.3));
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F4593;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

/* Seção do formulário */
.form-section {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

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

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

/* Checkbox personalizado */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    color: #4b5563;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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

.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

/* Botões */
.form-actions {
    margin-top: 0.8rem;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0D7A92 0%, #0F4593 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 122, 146, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* Seção de informações */
.info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #4b5563;
}

.info-icon {
    font-size: 1.2rem;
}

/* Estilos da página de termos */
.terms-content {
    padding-top: 0.8rem;
}

.terms-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0F4593;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

.terms-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #4b5563;
}

.terms-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    position: relative;
    padding-left: 0.5rem;
}

.terms-content ul li::marker {
    color: #0D7A92;
}

.terms-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    background: linear-gradient(135deg, #0D7A92 0%, #0F4593 100%);
    color: white;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 122, 146, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        padding: 0.875rem;
    }

    .terms-content h2 {
        font-size: 1rem;
    }

    .terms-content p,
    .terms-content ul li {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.125rem;
    }
    
    input[type="text"],
    input[type="tel"] {
        padding: 0.625rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Efeitos de foco para acessibilidade */
input:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

/* Estilo para quando o formulário tem erro */
input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Estilos específicos para campo date */
input[type="date"] {
    /* Remove setas do campo date em alguns browsers */
    -moz-appearance: textfield;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    color: #2563eb;
    cursor: pointer;
}

/* Ajustes para melhorar a consistência visual */
input[type="date"]::-webkit-datetime-edit {
    padding: 0.75rem;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text {
    padding: 0 0.25rem;
}
