﻿/* Estilos personalizados para um visual mais moderno */
html,
body {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

header {
    background-color: #ffffff;
}

.bg-login {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center center;
    background-image: url('/assets/img/Background-login.png');
}

@media (min-width: 768px) {
    .bg-login {
        background-image: url('/assets/img/Background-login.png');
    }
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    border: none;
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.04);
    text-align: center;
}

    .login-card .logo {
        margin-bottom: 1rem;
        user-select: none;
    }

/* =========================
   INPUTS PADRÃO
========================= */

.form-floating > .form-control {
    border-radius: 2rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #ffc999;
    box-shadow: 0 0 0 .25rem rgba(255, 123, 0, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    background-image: none;
}

/* =========================
   BOTÃO
========================= */

.btn-primary {
    background: linear-gradient(to right, rgba(255, 163, 161, 1) 50%, rgba(255, 146, 85, 1) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: background-position 0.6s ease-in-out;
    text-transform: uppercase;
    color: white;
}

    .btn-primary:hover {
        background-position: 0 0;
    }

/* =========================
   FORM FLOATING ICON GROUP
========================= */

.form-floating-icon-group {
    position: relative;
    text-align: left;
}

    .form-floating-icon-group .bi {
        position: absolute;
        z-index: 2;
        top: 60%;
        left: 1.5rem;
        transform: translateY(-50%);
        color: #999999;
        pointer-events: none;
    }

    .form-floating-icon-group .bi-eye-fill,
    .form-floating-icon-group .bi-eye-slash-fill {
        position: absolute;
        z-index: 10;
        top: 58%;
        right: 1.5rem;
        left: auto; /* 🔒 trava contra herança */
        transform: translateY(-50%);
        color: #999999;
        cursor: pointer;
        pointer-events: auto; /* 🔒 garante clique */
    }



    .form-floating-icon-group .form-control {
        padding-left: 3rem;
    }

.form-floating-icon-group {
    position: relative;
}

    .form-floating-icon-group .bi-eye-fill {
        position: absolute;
        z-index: 10; /* acima do input */
        top: 58%; /* mantém exatamente sua posição visual */
        right: 1.5rem;
        left: auto; /* 🔴 ESSENCIAL para não conflitar */
        transform: translateY(-50%);
        color: #999999;
        cursor: pointer;
        pointer-events: auto; /* garante clique */
    }

    .form-floating-icon-group .form-control {
        position: relative;
        z-index: 1; /* abaixo do ícone */
    }



    /* =========================
   LABEL PADRÃO (FORA DO FLOATING)
========================= */

    .form-floating-icon-group label.form-label {
        display: block;
        margin-bottom: 6px;
        font-size: 0.9rem;
        color: #6c757d;
        padding-left: 3rem;
    }

    /* =========================
   SELECT PRODUTO (SEM FLOATING)
========================= */

    .form-floating-icon-group select.form-select {
        height: 56px;
        padding-left: 3rem;
        border-radius: 999px;
        color: #212529;
    }

/* =========================
   REMOÇÕES IMPORTANTES
========================= */

/* Placeholder fake REMOVIDO */
.select-placeholder {
    color: inherit;
}

/* Remove qualquer resquício visual de floating no select */
.form-floating > .form-select ~ label,
.form-floating > .form-select ~ label::after {
    display: none !important;
}

/* =========================
   LINKS
========================= */

.signup-prompt {
    color: #333333;
    font-size: .9rem;
    white-space: nowrap;
}

.login-card a {
    color: #FF7B00;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
}

    .login-card a:hover {
        color: #FFA3A1;
    }

/* =========================
   TOAST
========================= */

.toast-container {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    z-index: 1056;
}

.toast {
    border-radius: 2rem !important;
}

#errorToast {
    width: 100%;
}

.toast-body {
    padding: 1rem 0 1rem 1.5rem;
    font-size: 1rem !important;
}

    .toast-body + button {
        padding-right: 1.5rem;
    }

@media (max-width: 768px) {
    .toast-container {
        top: 90px;
    }
}

/* =========================
   OUTROS
========================= */

.usuario-logado .dropdown-toggle a.elementor-animated-menu {
    pointer-events: none !important;
}

/* ===== AJUSTE VISUAL FINAL – SELECT PRODUTO ===== */

.form-floating-icon-group select.form-select {
    height: 56px;
    border-radius: 999px;
    /* Igual aos inputs */
    background-color: #eaf2ff;
    border: 1px solid #eaf2ff;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 3rem;
    font-size: 1rem;
    color: #212529;
}

    

/* Ícone acompanha o tom dos inputs */
.form-floating-icon-group i.bi-capsule-pill {
    color: #adb5bd;
}

/* Estado focus igual aos inputs */
.form-floating-icon-group select.form-select:focus {
    background-color: #eaf2ff;
    border-color: #ffc999;
    box-shadow: 0 0 0 .25rem rgba(255, 123, 0, 0.25);
    color: #212529;
}

.form-floating-icon-group {
    position: relative;
}

    .form-floating-icon-group .bi {
        position: absolute;
        z-index: 2;
        top: 60%;
        left: 1.5rem;
        transform: translateY(-50%);
        color: #999;
        pointer-events: none;
    }

    /* INPUT */
    .form-floating-icon-group .form-control {
        padding-left: 3rem;
    }

    /* LABEL (🔥 ESSENCIAL) */
    .form-floating-icon-group .form-floating > label {
        padding-left: 3rem;
        z-index: 3;
    }

    /* LABEL FLUTUADO */
    .form-floating-icon-group
    .form-floating > .form-control:focus ~ label,
    .form-floating-icon-group
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        transform: scale(.85) translateY(-1.1rem) translateX(0.5rem);
    }


