/*--------------------------------------------------------------
# BASE.CSS - Autossuficiente para Área de Autenticação
# Prev Incêndios
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Variáveis CSS Essenciais
--------------------------------------------------------------*/
:root {
    /* Cores Principais */
    --primary-red: #DC2626;
    --dark-red: #B91C1C;
    --light-red: #EF4444;
    --deep-black: #0F0F0F;
    --charcoal: #1F1F1F;
    --soft-white: #FAFAFA;
    --pure-white: #FFFFFF;
    
    /* Cores Secundárias */
    --gray-light: #E5E5E5;
    --gray-medium: #9CA3AF;
    --gray-dark: #6B7280;
    
    /* Gradientes */
    --gradient-dark: linear-gradient(135deg, #0F0F0F 0%, #1F1F1F 100%);
    --gradient-card: linear-gradient(135deg, #1F1F1F 0%, #0F0F0F 100%);
    --gradient-button: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    
    /* Sombras */
    --shadow-dark: 0 12px 32px rgba(0, 0, 0, 0.3);
    --shadow-red-medium: 0 8px 24px rgba(220, 38, 38, 0.3);
    
    /* Bordas */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
}

/*--------------------------------------------------------------
# Reset e Base
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    background: var(--gradient-dark);
    color: var(--soft-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
# Container e Centralização
--------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
    align-items: center;
    justify-content: center;
}

.col-lg-5 {
    flex: 0 0 100%;
    max-width: 500px;
    padding: 0 0.5rem;
}

.justify-content-center {
    justify-content: center;
}

/*--------------------------------------------------------------
# Card de Formulário
--------------------------------------------------------------*/
.info-sidebar {
    background: var(--gradient-card);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-dark);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.info-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    opacity: 0.3;
    z-index: 1;
}

.info-sidebar > * {
    position: relative;
    z-index: 2;
}

.info-title {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/*--------------------------------------------------------------
# Inputs de Formulário
--------------------------------------------------------------*/
.newsletter-input,
.form-control,
input[type="email"],
input[type="password"],
input[type="text"] {
    background: var(--charcoal);
    border: 2px solid var(--primary-red);
    color: var(--soft-white);
    border-radius: var(--border-radius-md);
    padding: 12px 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
}

.newsletter-input:focus,
.form-control:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    background: var(--charcoal);
    border-color: var(--light-red);
    color: var(--soft-white);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    outline: none;
}

.newsletter-input::placeholder,
.form-control::placeholder,
input::placeholder {
    color: var(--gray-medium);
}

/*--------------------------------------------------------------
# Labels
--------------------------------------------------------------*/
label {
    color: var(--soft-white);
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
# Checkboxes
--------------------------------------------------------------*/
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
    cursor: pointer;
}

/*--------------------------------------------------------------
# Botões
--------------------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--pure-white);
    box-shadow: var(--shadow-red-medium);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.w-100 {
    width: 100%;
}

/*--------------------------------------------------------------
# Mensagens de Feedback
--------------------------------------------------------------*/
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #EF4444;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10B981;
    color: #10B981;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-red);
}

/*--------------------------------------------------------------
# Utilitários
--------------------------------------------------------------*/
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}
/*--------------------------------------------------------------
# Botão Voltar
--------------------------------------------------------------*/
.btn-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-card);
    border: 2px solid var(--primary-red);
    color: var(--soft-white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-dark);
}

.btn-back:hover {
    background: var(--gradient-button);
    color: var(--pure-white);
    transform: translateX(-5px);
    box-shadow: var(--shadow-red-medium);
}

.btn-back i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .btn-back {
        top: 1rem;
        left: 1rem;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-back span {
        display: none; /* Esconde texto no mobile */
    }
}
/*--------------------------------------------------------------
# Responsivo
--------------------------------------------------------------*/
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .info-sidebar {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .info-title {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .info-sidebar {
        padding: 1.25rem;
    }
    
    .newsletter-input,
    .form-control,
    input {
        padding: 10px 0.875rem;
        font-size: 0.9375rem;
    }
}