/* ======================================================
   ESTILOS DA PÁGINA DE LOGIN (TC Studio)
   ====================================================== */

/* Reset Básico */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden; /* Evita rolagem */
    
    /* Configuração do Fundo Direto Aqui */
    background-color: #121212; /* Cor de fundo caso a imagem não carregue */
    background-image: url('../img/nova_hero_tc_4.jpg'); /* Caminho da imagem */
    background-size: cover;      /* Cobre toda a tela */
    background-position: center; /* Centraliza a imagem */
    background-repeat: no-repeat;
}

/* Fundo com Imagem */
.login-bg {

}

/* Overlay Escuro (Para legibilidade) */
.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Escurece a imagem em 70% */
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), #121212);
    z-index: -1;
}

/* Container Centralizador (Flexbox) */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Cartão de Login */
.login-card {
    background-color: #1e1e1e; /* Cinza Escuro */
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out;
}

/* Logo */
.logo-area {
    margin-bottom: 20px;
}

.pulsing-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.3));
    animation: pulse 3s infinite ease-in-out;
}

/* Títulos */
.login-title {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.login-subtitle {
    color: #888;
    margin-top: 5px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Inputs Personalizados Dark */
.input-dark {
    margin-top: 20px;
}

.input-dark i.prefix {
    color: #666;
    top: 10px;
}

.input-dark input {
    border-bottom: 1px solid #444 !important;
    box-shadow: none !important;
    color: #fff;
}

.input-dark input:focus {
    border-bottom: 1px solid var(--primary-color, #ffb300) !important;
    box-shadow: 0 1px 0 0 var(--primary-color, #ffb300) !important;
}

.input-dark input:focus + label {
    color: var(--primary-color, #ffb300) !important;
}

.input-dark input:focus ~ i.prefix {
    color: var(--primary-color, #ffb300) !important;
}

/* Link Esqueci a Senha */
.forgot-pass {
    color: #888;
    font-size: 0.85rem;
    transition: 0.3s;
}

.forgot-pass:hover {
    color: var(--primary-color, #ffb300);
}

/* Botão Entrar */
.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 6px;
    background-color: var(--primary-color, #ffb300); /* Amarelo */
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background-color: #ffca28; /* Amarelo mais claro */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
}

.btn-login i {
    margin-left: 10px;
}

/* Toast de Erro */
.toast-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #d32f2f; /* Vermelho */
    color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    animation: slideInRight 0.5s ease-out;
}

.toast-error .close-icon {
    cursor: pointer;
    margin-left: 10px;
    font-size: 18px;
    opacity: 0.8;
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Variáveis de Cor (Fallback se não carregar o root) */
:root {
    --primary-color: #ffb300; /* Amarelo Ouro */
}

/* Responsivo Mobile */
@media only screen and (max-width: 600px) {
    .login-card {
        padding: 30px 20px;
        background: rgba(30, 30, 30, 0.95); /* Levemente transparente no mobile */
        border: none;
    }
}


.input-field .prefix.active {
    color: #ffb300 !important;
}