/* =========================================================
   INICIO DE SESIÓN
========================================================= */

.app-navbar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.app-navbar .brand-text,
.app-navbar .brand-text small {
    color: #ffffff;
}

.app-main {
    padding: 0;
}

.login-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    background-color: #10231c;
    background-image: url("../../img/index-hero.jpg");
    background-position: center;
    background-size: cover;
}

.login-page-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 17, 13, 0.36), rgba(6, 17, 13, 0.24)),
        linear-gradient(0deg, rgba(4, 12, 9, 0.54), rgba(4, 12, 9, 0.08) 65%);
}

.login-page-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 125px;
    padding-bottom: 65px;
}

.login-back-button {
    position: absolute;
    top: 104px;
    left: clamp(18px, 4vw, 58px);
    z-index: 4;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #17372a;
    font-size: 1.25rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    transition: transform 160ms ease, background-color 160ms ease;
}

.login-back-button:hover {
    color: #17372a;
    background: #ffffff;
    transform: translateX(-2px);
}

.login-card {
    width: min(100%, 470px);
    padding: clamp(28px, 5vw, 46px);
    background: linear-gradient(145deg, rgba(15, 38, 28, 0.63), rgba(13, 27, 22, 0.47));
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.login-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.login-icon {
    display: grid;
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    place-items: center;
    color: #ffffff;
    font-size: 1.12rem;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 13px;
}

.login-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 2.65rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.login-heading p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.93rem;
}

.login-alert {
    margin-bottom: 22px;
    padding: 11px 14px;
    font-size: 0.88rem;
    border: 0;
    border-radius: 11px;
}

.login-form {
    display: grid;
    gap: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 650;
}

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

.login-input-wrapper input {
    width: 100%;
    height: 54px;
    padding: 0 52px 0 17px;
    color: #ffffff;
    font-size: 0.94rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 14px;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.login-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.57);
}

.login-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 4px rgba(144, 216, 174, 0.17);
}

.login-input-wrapper > i,
.password-toggle {
    position: absolute;
    top: 50%;
    right: 17px;
    color: rgba(255, 255, 255, 0.72);
    transform: translateY(-50%);
}

.password-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    outline: none;
}

.login-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -7px;
}

.login-options a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.login-options a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 55px;
    margin-top: 2px;
    padding: 10px 12px 10px 20px;
    color: #ffffff;
    font-weight: 750;
    background: linear-gradient(105deg, #5b9d43, #1fa866);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 13px 30px rgba(9, 71, 42, 0.30);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-submit-button i {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    background: rgba(255, 255, 255, 0.17);
    border-radius: 9px;
}

.login-submit-button:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 17px 36px rgba(9, 71, 42, 0.38);
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.73rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .login-page {
        background-position: 56% center;
    }

    .login-page-container {
        align-items: flex-end;
        padding: 115px 16px 28px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 23px;
    }

    .login-back-button {
        top: 90px;
        left: 16px;
        width: 42px;
        height: 42px;
    }

    .login-heading {
        gap: 12px;
        margin-bottom: 24px;
    }

    .login-icon {
        width: 41px;
        height: 41px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-back-button,
    .login-input-wrapper input,
    .login-submit-button {
        transition: none;
    }
}
