/**
 * Custom Login CSS - Conecta.GBringel Style
 * Template baseado no design do Conecta
 */

/* ============================================
   PÁGINA DE LOGIN CUSTOMIZADA
   ============================================ */

body.login-bringel {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background-color: #0a1628 !important;
    background-image: url('../pics/icone-form/back-bringel-new.png') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Container principal */
.login-bringel .page-anonymous {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: transparent !important;
}

/* Efeito de círculos decorativos - desabilitado pois a imagem de fundo já tem */
.login-bringel .page-anonymous::before,
.login-bringel .page-anonymous::after {
    display: none;
}

/* Card de login principal */
.login-bringel .login-container {
    display: flex;
    background: #ffffff;
    border-radius: 32px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 20px;
    gap: 0;
    min-height: 550px;
}

/* Slogan abaixo do modal */
.login-bringel .slogan-container {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

.login-bringel .slogan-container p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Lado esquerdo - Imagem */
.login-bringel .login-image-side {
    width: 45%;
    flex-shrink: 0;
    background: url('../pics/icone-form/login_bringel.jpeg') top center no-repeat;
    background-size: contain;
    position: relative;
    display: block;
    border-radius: 24px;
    min-height: 500px;
    margin: 0;
    background-color: #0d2137;
}

.login-bringel .login-image-side::before {
    display: none;
}

/* Ocultar qualquer conteúdo duplicado */
.login-bringel .login-image-side > * {
    display: none !important;
}

.login-bringel .image-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.login-bringel .image-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.login-bringel .image-content p {
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.login-bringel .image-content .tagline {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.login-bringel .image-content .tagline img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.login-bringel .slogan-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.login-bringel .slogan-bottom p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Lado direito - Formulário */
.login-bringel .login-form-side {
    width: 55%;
    flex-shrink: 0;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

.login-bringel .login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-bringel .login-logo img {
    max-height: 60px;
    width: auto;
}

.login-bringel .login-logo .logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #0a1628;
}

.login-bringel .login-logo .logo-text span {
    color: #f97316;
}

/* Campos do formulário */
.login-bringel .form-group {
    margin-bottom: 20px;
}

.login-bringel .form-group label {
    display: none;
}

.login-bringel .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #374151;
    box-sizing: border-box;
}

.login-bringel .form-control::placeholder {
    color: #9ca3af;
}

.login-bringel .form-control:focus {
    outline: none;
    border-color: #1e40af;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Checkbox lembrar-me */
.login-bringel .remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.login-bringel .remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1e40af;
    cursor: pointer;
}

.login-bringel .remember-me label {
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    margin: 0;
    display: inline;
}

/* Botão de login */
.login-bringel .btn-login {
    width: 100%;
    padding: 14px 20px;
    background: #1e40af;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.login-bringel .btn-login:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* Link esqueceu senha */
.login-bringel .forgot-password {
    text-align: center;
    margin-top: 20px;
}

.login-bringel .forgot-password a {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-bringel .forgot-password a:hover {
    color: #f97316;
}

/* Link cadastre-se */
.login-bringel .register-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.login-bringel .register-link span {
    color: #6b7280;
    font-size: 14px;
}

.login-bringel .register-link a {
    color: #f97316;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

.login-bringel .register-link a:hover {
    text-decoration: underline;
}

/* Footer */
.login-bringel .login-footer {
    text-align: center;
    margin-top: 30px;
    color: #9ca3af;
    font-size: 12px;
}

/* Mensagens de erro */
.login-bringel .alert-danger {
    background: #f97316;
    border: none;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 850px) {
    .login-bringel .login-container {
        flex-direction: column;
        max-width: 450px;
    }
    
    .login-bringel .login-image-side {
        width: 100%;
        min-height: 300px;
    }
    
    .login-bringel .login-form-side {
        width: 100%;
        padding: 40px 30px;
    }
    
    .login-bringel .page-anonymous::before,
    .login-bringel .page-anonymous::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-bringel .login-form-side {
        padding: 30px 20px;
    }
    
    .login-bringel .login-image-side {
        min-height: 250px;
    }
}

/* ============================================
   OCULTAR ELEMENTOS PADRÃO DO GLPI
   ============================================ */

.login-bringel .glpi-logo,
.login-bringel .container-tight > .text-center:first-child,
.login-bringel .card.card-md,
.login-bringel .text-center.text-muted.mt-3 {
    display: none !important;
}

.login-bringel .container-tight {
    max-width: none !important;
    padding: 0 !important;
}

.login-bringel .flex-fill {
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   DROPDOWN SELECT CUSTOMIZADO
   ============================================ */

.login-bringel .form-group select,
.login-bringel .form-group .form-select,
.login-bringel select.form-select {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    background-color: #f9fafb !important;
    color: #374151 !important;
    box-sizing: border-box !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    cursor: pointer !important;
}

.login-bringel .form-group select:focus,
.login-bringel select.form-select:focus {
    outline: none !important;
    border-color: #f97316 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

/* Select2 styling (se usado pelo GLPI) */
.login-bringel .select2-container {
    width: 100% !important;
}

.login-bringel .select2-container--default .select2-selection--single {
    height: 48px !important;
    padding: 10px 18px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background-color: #f9fafb !important;
}

.login-bringel .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
    color: #374151 !important;
    padding-left: 0 !important;
}

.login-bringel .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.login-bringel .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

/* ============================================
   LOGO CONECTA - GARANTIR VISIBILIDADE
   ============================================ */

.login-bringel .login-logo {
    text-align: center;
    margin-bottom: 40px;
    display: block !important;
}

.login-bringel .login-logo img {
    max-height: 60px;
    width: auto;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fallback se SVG não carregar - mostrar texto */
.login-bringel .login-logo img[src*="logo_conecta"]::after {
    content: "Conecta GBringel";
}
