/* Estilos específicos para a página de login */

.login-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* background: var(--secondary-color); */
    background-image: url('../images/2017-06-08-13-07-49.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.login-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/grain-pattern.svg');
    opacity: 0.3;
    pointer-events: none;
}

.login-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 250px);
    position: relative;
    z-index: 1;
    gap: 2rem;
}

.login-section {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.login-form-container {
    position: relative;
    z-index: 1;
    background: #ffffff; /* Fallback */
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Fallback */
    box-shadow: var(--card-shadow);
    max-width: 350px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-box {
    margin-bottom: 1.5rem;
}

.input-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 0.2rem var(--shadow-primary);
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-primary-hover);
}

.login-options {
    text-align: center;
    margin-bottom: 1rem;
}

.login-options a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-options a:hover {
    text-decoration: underline;
}

.register-user {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.register-user a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    background: var(--card-bg);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

#fortalezaDigitalBtn {
    text-align: center;
}

#fd_link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#fd_link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

#fd_link img {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* ===== SEÇÃO DE INFORMAÇÕES MODERNA ===== */
.info-section {
    background: linear-gradient(135deg, rgba(23, 63, 95, 0.9) 0%, rgba(32, 99, 155, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 0 20px 20px 0;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-right: auto;
    margin-left: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.info-content {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== HEADER PRINCIPAL ===== */
.info-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.info-logo {
    margin-bottom: 1.5rem;
}

.info-logo-img {
    width: 160px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.info-logo-img:hover {
    transform: scale(1.05);
}

.info-header h1 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.info-subtitle {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* ===== CARDS DE INFORMAÇÕES ===== */
.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(57, 93, 115, 0.3);
}

.info-card-icon .material-icons {
    color: var(--text-white);
    font-size: 20px;
}

.info-card-content h3 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.info-card-content p {
    color: #34495e;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== LINKS RÁPIDOS ===== */
.info-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.info-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-link:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    transform: translateX(4px);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-link:hover::before {
    left: 100%;
}

.info-link .material-icons {
    font-size: 18px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.info-link:hover .material-icons {
    color: var(--text-primary);
}

/* ===== DESTAQUE IMPORTANTE ===== */
.info-highlight {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid var(--warning-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    pointer-events: none;
}

.info-highlight .material-icons {
    color: var(--warning-color);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-highlight-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.info-highlight-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer na página de login - REMOVIDO */
/* O footer agora usa o estilo padrão definido em footer.css */

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .login-content {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
    }
    
    .login-section {
        order: 1;
        padding: 1rem;
    }
    
    .info-section {
        order: 2;
        padding: 1.5rem 1rem;
    }
    
    .info-header h1 {
        font-size: 1.8rem;
    }
    
    .info-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .info-cards {
        gap: 0.75rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-card-icon {
        width: 35px;
        height: 35px;
    }
    
    .info-card-icon .material-icons {
        font-size: 18px;
    }
    
    .info-links {
        gap: 0.5rem;
    }
    
    .info-link {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Footer responsivo removido - usa o padrão de footer.css */
}

@media (max-width: 576px) {
    .login-form-container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .info-section {
        padding: 1rem 0.75rem;
    }
    
    .info-header h1 {
        font-size: 1.6rem;
    }
    
    .info-subtitle {
        font-size: 0.9rem;
    }
    
    .info-logo-img {
        width: 70px;
        height: 70px;
    }
    
    .info-card {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .info-card-content h3 {
        font-size: 0.9rem;
    }
    
    .info-card-content p {
        font-size: 0.8rem;
    }
    
    .info-link {
        padding: 0.625rem;
        font-size: 0.8rem;
    }
    
    .info-highlight {
        padding: 0.875rem;
    }
    
    .info-highlight-content {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .login-content {
        padding: 0.5rem;
    }
    
    .info-header {
        margin-bottom: 1.5rem;
    }
    
    .info-header h1 {
        font-size: 1.4rem;
    }
    
    .info-cards {
        margin-bottom: 1.5rem;
    }
    
    .info-links {
        margin-bottom: 1.5rem;
    }
}

/* Melhorias de acessibilidade */
.btn:focus {
    box-shadow: 0 0 0 0.2rem var(--shadow-primary);
}

.nav-link:focus {
    box-shadow: 0 0 0 0.2rem var(--shadow-primary);
}

/* Scroll suave para âncoras */
html {
    scroll-behavior: smooth;
}

/* ===== ESTILOS DE LOADING PARA BOTÕES ===== */
.login-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Animação suave para transição entre estados do botão */
.login-button span {
    transition: all 0.3s ease;
}

/* Estilo para botão desabilitado */
.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-button:disabled:hover {
    transform: none;
    box-shadow: none;
} 