/* =========================================================
   LOGIN ADMIN - OTTER STUDIO
   ========================================================= */

:root {
    --login-primary: #e75480;
    --login-primary-dark: #c83e69;
    --login-primary-soft: #fce8ef;

    --login-black: #171717;
    --login-black-soft: #242424;

    --login-text: #1b1b1b;
    --login-text-soft: #737373;

    --login-white: #ffffff;
    --login-border: #ebe7e8;

    --login-bg: #f8f4f5;
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--login-text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(231, 84, 128, 0.10),
            transparent 26%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(231, 84, 128, 0.08),
            transparent 24%
        ),
        var(--login-bg);
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 40px;
}

.login-card {
    display: grid;

    grid-template-columns:
        minmax(380px, 0.95fr)
        minmax(440px, 1.05fr);

    width: 100%;
    max-width: 1050px;
    min-height: 650px;

    overflow: hidden;

    border:
        1px solid
        rgba(0, 0, 0, 0.05);

    border-radius: 26px;

    background: var(--login-white);

    box-shadow:
        0 24px 70px
        rgba(29, 19, 22, 0.12);
}


/* =========================================================
   BLOQUE IZQUIERDO
   ========================================================= */

.login-brand {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 60px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #111111 0%,
            #1c1c1c 58%,
            #242424 100%
        );
}

.login-brand-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 360px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 120px;
    height: 120px;

    margin-bottom: 34px;

    overflow: hidden;

    border:
        3px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.25);
}

.login-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.login-brand-label {
    display: inline-flex;

    margin-bottom: 14px;

    color: #f49ab5;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-brand h1 {
    margin: 0;

    font-size: clamp(
        48px,
        6vw,
        72px
    );

    font-weight: 800;

    letter-spacing: -0.055em;
    line-height: 0.93;
}

.login-brand h1 span {
    display: block;

    color: var(--login-primary);
}

.login-brand p {
    max-width: 330px;

    margin: 26px 0 0;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   DECORACIONES
   ========================================================= */

.login-brand-decoration {
    position: absolute;

    border-radius:
        55% 45% 60% 40%
        / 55% 45% 55% 45%;

    background:
        var(--login-primary);

    opacity: 0.9;
}

.login-brand-decoration-one {
    right: -90px;
    bottom: -110px;

    width: 300px;
    height: 300px;

    transform: rotate(25deg);
}

.login-brand-decoration-two {
    top: -70px;
    left: -90px;

    width: 220px;
    height: 220px;

    opacity: 0.12;

    transform: rotate(-30deg);
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 390px;
}

.login-heading > span {
    display: block;

    margin-bottom: 10px;

    color: var(--login-primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0 0 10px;

    font-size: 34px;
    font-weight: 800;

    letter-spacing: -0.035em;
}

.login-heading p {
    margin: 0;

    color: var(--login-text-soft);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   ERROR
   ========================================================= */

.login-error {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 28px;

    padding: 13px 15px;

    border:
        1px solid
        #f3c8d5;

    border-radius: 10px;

    background: #fff3f6;

    color: #a9284d;

    font-size: 13px;
    font-weight: 600;
}

.login-error i {
    color: var(--login-primary);
}


/* =========================================================
   CAMPOS
   ========================================================= */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 21px;

    margin-top: 34px;
}

.login-field label {
    display: block;

    margin-bottom: 8px;

    color: #333;

    font-size: 13px;
    font-weight: 700;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper > i {
    position: absolute;

    top: 50%;
    left: 16px;

    z-index: 2;

    color: #a9a2a4;

    font-size: 14px;

    transform:
        translateY(-50%);

    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;
    height: 52px;

    padding:
        0 48px
        0 44px;

    border:
        1px solid
        var(--login-border);

    outline: none;

    border-radius: 11px;

    background: #fff;

    color:
        var(--login-text);

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.login-input-wrapper input::placeholder {
    color: #bbb5b7;
}

.login-input-wrapper input:focus {
    border-color:
        var(--login-primary);

    box-shadow:
        0 0 0 4px
        rgba(231, 84, 128, 0.10);

    background:
        #fffafb;
}


/* =========================================================
   MOSTRAR CONTRASEÑA
   ========================================================= */

.password-toggle {
    position: absolute;

    top: 50%;
    right: 9px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #989194;

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.password-toggle:hover {
    background:
        var(--login-primary-soft);

    color:
        var(--login-primary);
}


/* =========================================================
   BOTÓN
   ========================================================= */

.login-button {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 54px;

    margin-top: 6px;

    padding: 0 20px;

    border: 0;

    border-radius: 11px;

    background:
        var(--login-black);

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    background:
        var(--login-primary);

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(231, 84, 128, 0.20);
}

.login-button:active {
    transform:
        translateY(0);
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    margin-top: 32px;

    padding-top: 20px;

    border-top:
        1px solid
        var(--login-border);

    color:
        #aaa3a5;

    font-size: 11px;

    text-align: center;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .login-page {
        padding: 20px;
    }

    .login-card {
        grid-template-columns: 1fr;

        max-width: 620px;
    }

    .login-brand {
        min-height: 310px;

        padding: 42px;
    }

    .login-brand-content {
        max-width: none;
    }

    .login-logo {
        width: 86px;
        height: 86px;

        margin-bottom: 20px;
    }

    .login-brand h1 {
        font-size: 46px;
    }

    .login-brand p {
        margin-top: 16px;
    }

    .login-form-section {
        padding: 55px 45px;
    }
}


@media (max-width: 520px) {

    .login-page {
        padding: 0;

        background: #fff;
    }

    .login-card {
        min-height: 100vh;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .login-brand {
        min-height: 250px;

        padding: 30px 25px;
    }

    .login-logo {
        width: 70px;
        height: 70px;

        margin-bottom: 14px;
    }

    .login-brand-label {
        margin-bottom: 8px;
    }

    .login-brand h1 {
        font-size: 38px;
    }

    .login-brand p {
        display: none;
    }

    .login-form-section {
        padding: 42px 25px;
    }

    .login-heading h2 {
        font-size: 28px;
    }
}