body {
    height: 100%;
    background-color: #f2f2f2;
}

body::before {
    content: "";
    position: fixed;
    inset: -5rem;
    background: url('../../../assets/images/background-login.webp') no-repeat center;
    background-size: cover;
    z-index: -1;

    @media screen and (min-width: 1367px) {
        background-position: calc(100% - 5rem) center !important;
    }
}

#help {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #10db40;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;

    .bi-whatsapp {
        font-size: 24px;
        color: white;
        line-height: 1;
        margin-top: -10px;
        margin-left: -2px;
    }
}

#auth {
    height: 100vh;
    overflow-x: hidden;

    #auth-left {
        padding: 2rem;

        @media screen and (max-width: 767px) {
            padding: 2rem;
        }

        @media screen and (max-width: 576px) {
            padding: 1.5rem;
        }
    }
}

.form-login {
    background-color: rgba(255, 255, 255, 0.909);
    margin: 5rem 4rem 4rem 4rem;
    box-shadow: 10px 10px 5px rgba(148, 148, 148, 0.541);

    @media screen and (max-width: 767px) {
        position: relative !important;
        margin: 0px !important;
        height: fit-content !important;
        width: 100% !important;
    }

    @media screen and (min-width: 768px) {
        min-width: 30rem !important;
    }
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 2.6rem;
    padding: .5rem 1rem;
    border: 0;
    border-radius: .75rem;
    background: linear-gradient(135deg, #f7853a 0%, #ee6418 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .01em;
    box-shadow: 0 8px 20px rgba(238, 100, 24, .32);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    margin-bottom: 5px;
}

.btn-login:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(238, 100, 24, .38);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(238, 100, 24, .3);
}

.btn-login:focus-visible {
    outline: 3px solid rgba(238, 100, 24, .35);
    outline-offset: 2px;
}

.btn-login .bi {
    display: inline-flex;
    line-height: 1;
    transition: transform .15s ease;
}

/* Zera o deslocamento vertical do Bootstrap Icons. */
.login-card .bi::before {
    vertical-align: 0;
}

.btn-login:hover .bi {
    transform: translateX(3px);
}

#h1-login {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

/* ---------- Card de login ---------- */
.login-card {
    width: min(100%, 25rem);
    min-width: 0 !important;
    background-color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 1.25rem !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28), 0 2px 6px rgba(15, 23, 42, .08);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

/* Logo maior, com sombra para destacar do fundo do card. */
.login-card img.logo {
    max-height: 100px;
    max-width: 85%;
    margin-bottom: .5rem;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, .18));
    transition: transform .2s ease;
}

.login-card a:hover img.logo {
    transform: scale(1.03);
}

@media screen and (max-width: 576px) {
    .login-card img.logo {
        max-height: 80px;
    }
}

.login-subtitle {
    color: #64748b;
    font-size: .85rem;
}

.login-label {
    display: block;
    margin-bottom: .25rem;
    color: #334155;
    font-size: .85rem;
    font-weight: 600;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
    transition: color .15s ease;
}

.login-card .login-input {
    height: 2.6rem;
    padding-left: 2.6rem;
    border: 1px solid #dbe1ea;
    border-radius: .75rem;
    background-color: #f8fafc;
    color: #1e293b;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.login-card .login-input::placeholder {
    color: #a0aec0;
}

.login-card .login-input:focus {
    border-color: #f07a2e;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(240, 122, 46, .15);
}

.login-input-wrap:focus-within .login-input-icon {
    color: #f07a2e;
}

.login-card .login-input-password {
    padding-right: 3rem;
}

.login-toggle-password {
    position: absolute;
    top: .3rem;
    right: .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: #94a3b8;
    line-height: 1;
}

.login-toggle-password:hover,
.login-toggle-password:focus-visible {
    background: rgba(148, 163, 184, .15);
    color: #475569;
}

.login-options {
    font-size: .875rem;
}

.login-options .form-check-label {
    color: #475569;
}

.login-options .form-check-input:checked {
    background-color: #f07a2e;
    border-color: #f07a2e;
}

.login-link {
    color: #f07a2e;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    color: #d35f15;
    text-decoration: underline;
}

img.logo {
    max-height: 100px;
}
