* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #f4f6f9;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* ==========================================================
   ESTRUTURA DO LOGIN
========================================================== */

.login-wrapper {
    width: 100%;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px;
}

/* ==========================================================
   CARD DO LOGIN
========================================================== */

.auth-card {
    width: 100%;
    max-width: 400px;

    padding: 3rem 2.2rem;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.05),
        0 20px 48px rgba(0, 0, 0, 0.05);
}

/* ==========================================================
   TOPO DO LOGIN
========================================================== */

.auth-logo h2,
.auth-logo p {
    margin: 0;
}

.auth-logo p {
    margin-top: 8px;
}

/* ==========================================================
   INPUTS
========================================================== */

.custom-input-group {
    overflow: hidden;

    background-color: #ffffff;

    border: 1px solid #ced4da;
    border-radius: 8px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.custom-input-group .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;

    padding-left: 15px;
    padding-right: 12px;

    background: #fafafa;
    color: #6c757d;

    border: none;
}

.custom-input-group .form-control {
    min-height: 46px;

    padding: 11px 12px 11px 5px;

    background: transparent;
    color: #212529;

    border: none;
    box-shadow: none;

    font-size: 14px;
}

.custom-input-group .form-control::placeholder {
    color: #9ca3af;
}

.custom-input-group .form-control:focus {
    background: transparent;
    box-shadow: none;
}

.custom-input-group:focus-within {
    border-color: #111111;

    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* ==========================================================
   BOTÃO MOSTRAR SENHA
========================================================== */

.btn-password-toggle {
    width: 46px;
    min-width: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #ffffff;
    color: #6c757d;

    border: none;
    border-left: 1px solid #edf0f2;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.btn-password-toggle:hover {
    background: #f8f9fa;
    color: #111111;
}

.btn-password-toggle:focus {
    outline: none;
    box-shadow: none;
}

/* ==========================================================
   ESQUECI MINHA SENHA
========================================================== */

.login-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-top: 10px;
}

.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #6c757d;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.forgot-password-link i {
    font-size: 11px;
}

.forgot-password-link:hover {
    color: #111111;

    text-decoration: none;

    transform: translateY(-1px);
}

/* ==========================================================
   BOTÃO ENTRAR
========================================================== */

.btn-black {
    min-height: 48px;

    padding: 11px;

    background-color: #000000;
    color: #ffffff;

    border: 1px solid #000000;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.btn-black:hover {
    background-color: #2d2d2d;
    border-color: #2d2d2d;
    color: #ffffff;

    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.13);

    transform: translateY(-1px);
}

.btn-black:active {
    transform: translateY(1px);
}

.btn-black:focus {
    color: #ffffff;

    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   ALERTAS
========================================================== */

.custom-alert,
.login-alert {
    padding: 13px 15px;

    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
}

.custom-alert i,
.login-alert i {
    flex-shrink: 0;
}

/* Erro */

.custom-alert,
.login-alert-error {
    background-color: #fff5f5;
    color: #c53030;

    border: 1px solid #fed7d7;
}

/* Sucesso */

.login-alert-success {
    background-color: #f0fdf4;
    color: #15803d;

    border: 1px solid #bbf7d0;
}

/* ==========================================================
   RECUPERAÇÃO DE SENHA
========================================================== */

.auth-recovery-icon {
    width: 72px;
    height: 72px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    background: #f8fafc;
    color: #111111;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    font-size: 27px;
}

.back-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #6c757d;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-login-link:hover {
    color: #111111;

    text-decoration: none;

    transform: translateX(-2px);
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 480px) {

    .login-wrapper {
        align-items: center;

        padding: 12px;
    }

    .auth-card {
        max-width: 100%;

        padding: 2.2rem 1.4rem;

        border-radius: 12px;
    }

    .auth-logo h2 {
        font-size: 1.25rem !important;
    }

    .login-options {
        justify-content: flex-end;
    }

    .forgot-password-link {
        font-size: 12px;
    }

    .custom-input-group .form-control {
        font-size: 16px;
    }

}

/* ==========================================================
   CELULARES PEQUENOS
========================================================== */

@media (max-width: 350px) {

    .auth-card {
        padding: 2rem 1.1rem;
    }

    .login-options {
        justify-content: center;
    }

}