/* =========================================================
   WÖRTH Selection · Login V2
   ========================================================= */

html,
body {
    margin: 0;
    min-height: 100%;
}

.ws-auth-v2,
.ws-auth-v2 * {
    box-sizing: border-box;
}

.ws-auth-v2 {
    --green: #07513e;
    --green-dark: #043d30;
    --green-soft: #dcebe4;
    --green-soft-2: #edf4f0;

    --cream: #f8f5ee;
    --sand: #d7c28f;

    --text: #17372f;
    --muted: #6d7973;
    --border: #d9e0dc;

    position: fixed;
    inset: 0;
    z-index: 999999;

    overflow-y: auto;

    background: #ffffff;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
}


/* =========================================================
   HEADER
   ========================================================= */

.ws-auth-v2-header {
    height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 max(30px, calc((100vw - 1180px) / 2));

    background: #ffffff;

    border-bottom: 1px solid #e4e8e5;
}

.ws-auth-v2-logo {
    display: flex;
    align-items: center;

    min-width: 160px;
    min-height: 45px;

    color: var(--green);

    text-decoration: none;
}

.ws-auth-v2-logo img {
    display: block;

    max-width: 230px;
    max-height: 54px;

    width: auto;
    height: auto;

    object-fit: contain;
}

.ws-auth-v2-logo-fallback {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;
    font-weight: 700;

    color: var(--green);
}

.ws-auth-v2-header-actions {
    display: flex;
    align-items: center;

    gap: 22px;
}

.ws-auth-v2-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 0;

    background: transparent;

    color: var(--green-dark);

    text-decoration: none;

    cursor: pointer;
}

.ws-auth-v2-icon svg {
    width: 25px;
    height: 25px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.ws-auth-v2-main {
    width: min(100%, 1180px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(390px, .82fr);

    min-height: 674px;
}


/* =========================================================
   LOGIN IZQUIERDA
   ========================================================= */

.ws-auth-v2-login {
    display: flex;
    justify-content: center;

    padding:
        55px
        72px
        46px
        48px;

    background: #ffffff;
}

.ws-auth-v2-login-inner {
    width: 100%;
    max-width: 420px;
}

.ws-auth-v2-login h1 {
    margin:
        0
        0
        40px;

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    color: var(--green-dark);
}


/* =========================================================
   FORMULARIO ORIGINAL
   ========================================================= */

#ws-auth-v2-form-mount {
    width: 100%;
}

#ws-auth-v2-form-mount form {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
}

#ws-auth-v2-form-mount label {
    color: var(--green-dark) !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}

#ws-auth-v2-form-mount input[type="email"],
#ws-auth-v2-form-mount input[type="password"],
#ws-auth-v2-form-mount input[type="text"] {
    width: 100% !important;

    min-height: 50px !important;

    border:
        1px
        solid
        #9eaaa4 !important;

    border-radius: 0 !important;

    background: #ffffff !important;

    padding:
        0
        14px !important;

    color: var(--text) !important;

    font-size: 15px !important;

    outline: 0 !important;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

#ws-auth-v2-form-mount input:focus {
    border-color: var(--green) !important;

    box-shadow:
        0
        0
        0
        3px
        rgba(7, 81, 62, .08) !important;
}


/* Botón principal */

#ws-auth-v2-form-mount button[type="submit"],
#ws-auth-v2-form-mount input[type="submit"] {
    width: 100% !important;

    min-height: 52px !important;

    border: 0 !important;

    border-radius: 999px !important;

    background: var(--green) !important;

    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 800 !important;

    cursor: pointer !important;
}

#ws-auth-v2-form-mount button[type="submit"]:hover,
#ws-auth-v2-form-mount input[type="submit"]:hover {
    background: var(--green-dark) !important;
}


/* Links */

#ws-auth-v2-form-mount a {
    color: var(--green) !important;
}


/* Redes sociales existentes */

#ws-auth-v2-form-mount button:not([type="submit"]),
#ws-auth-v2-form-mount .social-button,
#ws-auth-v2-form-mount .social-btn {
    border-radius: 999px !important;
}


/* =========================================================
   REGISTRO DERECHA
   ========================================================= */

.ws-auth-v2-register {
    padding:
        55px
        50px
        52px;

    background:
        linear-gradient(
            145deg,
            var(--green-soft) 0%,
            var(--green-soft-2) 100%
        );

    color: var(--green-dark);
}

.ws-auth-v2-register h2 {
    margin:
        0
        0
        34px;

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    color: var(--green-dark);
}


/* =========================================================
   VISUAL
   ========================================================= */

.ws-auth-v2-visual {
    position: relative;

    width: 100%;
    height: 190px;

    margin-bottom: 32px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--green) 0%,
            #0a7255 100%
        );
}

.ws-auth-v2-window {
    position: absolute;

    left: 38px;
    top: 31px;

    width: 235px;
    height: 130px;

    padding: 19px;

    background: #ffffff;

    box-shadow:
        0
        12px
        26px
        rgba(0,0,0,.16);
}

.ws-auth-v2-window-logo {
    margin-bottom: 17px;

    color: var(--green);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 700;

    font-size: 17px;
}

.ws-auth-v2-window-line {
    height: 8px;

    margin-bottom: 8px;

    border-radius: 5px;

    background: #e3ebe7;
}

.ws-auth-v2-window-line:nth-child(3) {
    width: 72%;
}

.ws-auth-v2-window-line:nth-child(4) {
    width: 88%;
}

.ws-auth-v2-person-shape {
    position: absolute;

    width: 126px;
    height: 126px;

    right: 24px;
    bottom: -31px;

    border-radius:
        62px
        62px
        12px
        12px;

    background: var(--sand);
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.ws-auth-v2-benefits {
    display: grid;

    gap: 10px;

    margin:
        0
        0
        38px;

    padding: 0;

    list-style: none;
}

.ws-auth-v2-benefits li {
    position: relative;

    padding-left: 26px;

    font-size: 15px;

    line-height: 1.42;

    color: var(--green-dark);
}

.ws-auth-v2-benefits li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 0;

    font-size: 17px;
    font-weight: 800;

    color: var(--green);
}


/* =========================================================
   CREAR CUENTA
   ========================================================= */

.ws-auth-v2-register-button {
    width: 100%;

    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 22px;

    border: 0;

    border-radius: 999px;

    background: var(--green);

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
}

.ws-auth-v2-register-button:hover {
    background: var(--green-dark);
}


/* =========================================================
   FOOTER
   ========================================================= */

.ws-auth-v2-footer {
    width: min(100% - 40px, 1180px);

    margin: 0 auto;

    padding:
        27px
        65px
        36px;

    border-top: 1px solid #edf0ee;

    color: #53625b;

    font-size: 12px;

    line-height: 1.55;
}

.ws-auth-v2-footer p {
    margin:
        0
        0
        10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .ws-auth-v2-header {
        height: 72px;

        padding:
            0
            20px;
    }

    .ws-auth-v2-logo img {
        max-width: 180px;
    }

    .ws-auth-v2-main {
        grid-template-columns: 1fr;
    }

    .ws-auth-v2-login {
        padding:
            40px
            25px;
    }

    .ws-auth-v2-register {
        padding:
            42px
            25px;
    }

    .ws-auth-v2-footer {
        padding:
            25px
            5px
            35px;
    }
}
