/* Estilos da página de login */

/* Container principal */
.login-container {
    background-image: url('../images/wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #121212; /* Cor de fallback caso a imagem não carregue */
}

/* Card do formulário */
.login-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Título principal */
.login-title {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Slogan */
.login-slogan {
    font-size: 0.5rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    bottom: 0;
    right: 0;
    transform: translate(10px, 15px);
}

/* Input groups */
.login-input-group {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-input-group:focus-within {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.login-input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-input:focus,
.login-input:focus-visible,
.login-input:focus-within,
.form-control.login-input:focus,
.form-control.login-input:focus-visible {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    color: white !important;
    outline: none !important;
}

/* Cores dos inputs */
.login-icon-color {
    color: #6c757d;
}

.login-text-color {
    color: white;
}

/* Sobrescrever estilos do Bootstrap com maior especificidade */
.input-group .form-control.login-input:focus,
.input-group .form-control.login-input:focus-visible,
.input-group .form-control.login-input:active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important; /* Removido o box-shadow verde */
    color: white !important;
    outline: none !important;
}

.input-group .input-group-text.login-input-group:focus-within {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Corrigir autofill/autocomplete - manter cor inicial */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: white !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Para navegadores que não suportam -webkit-autofill */
.login-input:autofill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    color: white !important;
}

/* Botão de login */
.login-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Ícone de escudo */
.shield-icon {
    font-size: 1.2rem;
    color: #28a745;
    text-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Toast de segurança */
.security-toast {
    color: white;
    padding: 4px 8px;
    font-size: 0.6rem;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.8);
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.5s ease;
}

/* Container do ícone */
.shield-container {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Toast posicionamento */
.toast-position {
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
}
