/* Garantir que body e main não tenham background na página de login */
body.login-page,
body.login-page .main-content {
    background: transparent !important;
}

/* ===== SLIDESHOW BACKGROUND ===== */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Slides individuais */
.slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: -1;
}

/* Slide ativo */
.slideshow-container .slide.active {
    opacity: 1;
}

/* Overlay escuro por cima do slideshow */
.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.10);
    z-index: 0;
    pointer-events: none;
}

/* Container centralizado */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    pointer-events: auto;
}

/* Caixa de login com tema barbearia */
.login-box {
    background: rgba(0, 0, 0, 0.35);
    padding: 35px 40px;
    border-radius: 18px;
    width: 360px;
    max-width: 90%;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(5px);
    border-top: 4px solid #C9A66B; /* dourado premium */
    border: none;
    border-top: 4px solid #C9A66B;
    pointer-events: auto;
}

/* Título da barbearia */
.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #C9A66B;
    text-align: center;
    margin-bottom: 20px;
}

.login-box h4 {
    color: #C9A66B;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
}

/* Mensagem de erro compacta dentro do login-box */
.login-error-msg {
    background: rgba(220, 53, 69, 0.15);
    border-left: 4px solid #dc3545;
    color: #ff6b6b;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* Labels dos campos */
.login-box .form-label {
    display: none;
}

/* Inputs */
.login-box .form-control,
.login-box input {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #C9A66B;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.login-box .form-control:focus,
.login-box input:focus {
    outline: none;
    border-color: #b89435;
    box-shadow: 0 0 6px rgba(201, 166, 107, 0.6);
    background: rgba(255, 255, 255, 0.90);
    color: #333;
}

/* Input com erro (quando há tentativa de login incorreta) */
.login-box .form-control.is-invalid,
.login-box input.is-invalid {
    border-color: #dc3545;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-box .form-control::placeholder {
    color: #999;
}

/* Botão de login */
.login-box .btn-primary,
.login-box button {
    background: linear-gradient(to bottom, #d9b24d, #b89435);
    border: none;
    padding: 12px;
    font-weight: 600;
    color: #111;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.login-box .btn-primary:hover,
.login-box button:hover {
    background: linear-gradient(to bottom, #caa23d, #a5842d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 166, 107, 0.5);
    color: #111;
}

/* Ajustar main-content na página de login para não mostrar mensagens do sistema */
body.login-page .main-content {
    background: transparent !important;
}

/* Ocultar apenas o container de mensagens do sistema (messages.html) */
body.login-page .main-content > .container-fluid {
    display: none;
}

/* Mensagens de erro - legado (não mais usado) */
.login-box .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

/* Media query para mobile - login-box 100% transparente */
@media (max-width: 768px) {
    .login-box {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none;
        border: none !important;
    }

    /* Inputs também transparentes em mobile */
    .login-box .form-control,
    .login-box input {
        background: transparent !important;
        border: 2px solid #C9A66B !important;
    }

    /* Botão mantém o estilo mas sem fundo em mobile */
    .login-box .btn-primary,
    .login-box button {
        background: rgba(201, 166, 107, 0.65) !important;
        border: 2px solid #C9A66B !important;
        color: #ffffff !important;
    }
}
