* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --bs-primary: #33409E;
    --bs-primary-rgb: 51, 64, 158;

    --bs-secondary: #A5C230;
    --bs-secondary-rgb: 165, 194, 48;
}

a {
    text-decoration: none;
}

p {
    margin-bottom: 10px;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

button.btn,
a.btn {
    padding: 16px 20px;
    border: none;
    outline: none;
    border-radius: 8px;
    line-height: 1;
    font-weight: 400;
    font-family: inherit;
    transition: all 0.5s ease;
    cursor: pointer;
    font-size: 14px;
}

/* --- Variantes de Botones --- */
.btn-primary {
    background: linear-gradient(90deg, #2A3481 0%, #4756B8 100%);
    color: #fff;
    box-shadow:
        0px 4px 8px 3px rgba(0, 0, 0, 0.15),
        0px 1px 3px rgba(0, 0, 0, 0.3);
    transition: all .5s ease;
}

.btn-secondary {
    background-color: rgba(var(--bs-primary-rgb), .15);
    color: var(--bs-primary);
}

.btn-primary:hover {
    transition: all .5s ease;
    background: linear-gradient(90deg, #2A3481 100%, #4756B8 0%);
}

.btn-secondary:hover {
    background-color: rgba(var(--bs-primary-rgb), .5);
    color: var(--bs-primary);
}

.btn-primary:focus,
.btn-primary:active {
    filter: brightness(0.95);
    transform: translateY(0);
    box-shadow:
        0px 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}

body {
    font-family: Poppins, sans-serif;
    scroll-behavior: smooth;
    font-size: 14px;
    color: #1F1F1F;
}

main {
    width: 100%;
    height: 100vh;
}

/* ======================= */
/* LOGIN MODULE (BEM)      */
/* ======================= */

.login {
    background: linear-gradient(90deg, rgba(33, 40, 84, 1) 0%, rgba(48, 59, 138, 1) 50%, rgba(62, 78, 193, 1) 72%, rgba(33, 40, 84, 1) 100%);
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: overlay;
}

.login__character {
    position: absolute;
    bottom: 0;
    left: 50px;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: end;
    width: 80%;
    overflow: hidden;
}

.login__character-img {
    height: 90%;
    display: flex;
    align-items: end;
    position: relative;
    top: 20%;
}

.login__img {
    height: 100%;
}

.login__bubble {
    position: absolute;
    top: -10%;
    left: 70%;
    padding: 16px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 224px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(86deg, rgba(255, 255, 255, 0.30) 11.14%, rgba(255, 255, 255, 0.05) 113.29%);
    background-blend-mode: overlay;
    color: #FFF;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-feature-settings: 'liga' off, 'clig' off;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 135%;
    /* 27px */
}

.login__background {
    position: absolute;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(0deg, rgba(62, 78, 193, 1) 0%, rgba(62, 78, 193, 1) 100%);
    z-index: -1;
}

.login__background--left {
    left: 0;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.login__background--right {
    right: 0;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.login__form-wrapper {
    margin-top: 28px;
    position: relative;
    z-index: 50;
}

.login__logo {
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
}

.login__logo img {
    max-width: 76%;
}

.login__form {
    background-color: white;
    padding: 24px;
    border-radius: 20px;
}

.login--primary {
    color: var(--bs-primary);
}

.login--secondary {
    color: var(--tertiary-500, #A5C230);
    leading-trim: both;
    text-edge: cap;
    font-feature-settings: 'liga' off, 'clig' off;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 135%;
}

.login__text {
    color: rgba(31, 31, 31, 0.80);
}

.login__title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.login__input {
    margin-bottom: 18px;
}

.login__input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translate(0, -50%);
}

.form-control {
    height: 40px;
    padding: 18px 36px 18px 18px;
}

.login__checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.alert ul {
    margin-bottom: 0px;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .login__character {
        display: none;
    }
}