/*
 * WÖRTH Selection · página de inicio de sesión
 * Reemplaza 10 hojas superpuestas del login anterior.
 */

.ws-auth {
    background: #fff;
}

/* Cabecera */

.ws-auth-header {
    border-bottom: 1px solid var(--ws-line);
    background: #fff;
}

.ws-auth-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1048px;
    min-height: 88px;
    margin: 0 auto;
    padding: 0 24px;
}

.ws-auth-logo {
    display: block;
    line-height: 0;
}

.ws-auth-logo img {
    width: 150px;
    height: auto;
}

.ws-auth-header__nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ws-forest);
    text-decoration: none;
    padding: 10px 2px;
    border-bottom: 1.5px solid transparent;
}

.ws-auth-header__nav a:hover {
    border-bottom-color: var(--ws-sand);
}

/* Paneles */

.ws-auth-main {
    padding: 0 24px 48px;
}

.ws-auth-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.ws-auth-login,
.ws-auth-register {
    padding: 56px 64px 60px;
}

.ws-auth-title {
    margin: 0 0 40px;
    font-family: var(--ws-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.005em;
    text-align: center;
    color: var(--ws-forest);
}

/* Login */

.ws-auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ws-auth-forgot {
    font-size: 14px;
    color: var(--ws-forest);
    text-underline-offset: 3px;
}

.ws-auth-forgot:hover {
    color: var(--ws-sand-deep);
}

.ws-auth-password {
    position: relative;
}

.ws-auth-password .ws-input {
    padding-right: 54px;
}

.ws-auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ws-forest);
    transform: translateY(-50%);
    cursor: pointer;
}

.ws-auth-eye[aria-pressed="true"] {
    color: var(--ws-sand-deep);
}

.ws-auth-remember {
    margin: 6px 0 30px;
}

/* Regístrate: el único elemento expresivo de la página */

.ws-auth-register {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--ws-forest);
    color: #EDE6D6;
}

.ws-auth-register .ws-auth-title {
    position: relative;
    color: #fff;
    margin-bottom: 18px;
}

.ws-auth-register__mark {
    position: absolute;
    top: 22px;
    right: -84px;
    width: 300px;
    height: auto;
    fill: var(--ws-sand);
    stroke: var(--ws-sand);
    opacity: .13;
    pointer-events: none;
}

.ws-auth-register__lead {
    position: relative;
    max-width: 36ch;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.5;
    text-align: center;
    color: #F3EDE1;
}

.ws-auth-benefits {
    position: relative;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
}

.ws-auth-benefits li {
    position: relative;
    padding: 9px 0 9px 32px;
    border-top: 1px solid rgba(201, 167, 117, .25);
    font-size: 15px;
}

.ws-auth-benefits li:last-child {
    border-bottom: 1px solid rgba(201, 167, 117, .25);
}

.ws-auth-benefits li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--ws-sand);
    border-bottom: 2px solid var(--ws-sand);
    transform: rotate(-45deg);
}

.ws-auth-register .ws-btn {
    position: relative;
    margin-top: auto;
}

.ws-auth-register__company {
    position: relative;
    margin: 18px 0 0;
    font-size: 14px;
    text-align: center;
    color: #D9D2C2;
}

.ws-auth-register__company a {
    color: #fff;
    font-weight: 600;
    text-underline-offset: 3px;
}

.ws-auth-register :focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .7);
}

/* Texto legal */

.ws-auth-legal {
    max-width: 1000px;
    margin: 28px auto 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ws-muted);
}

.ws-auth-legal p {
    max-width: 92ch;
    margin: 0 0 10px;
}

.ws-auth-legal__copy {
    margin-top: 18px !important;
}

/* Responsive */

@media (max-width: 880px) {
    .ws-auth-login,
    .ws-auth-register {
        padding: 44px 36px 48px;
    }

    .ws-auth-title {
        font-size: 36px;
    }
}

@media (max-width: 720px) {
    .ws-auth-header__inner {
        min-height: 72px;
        padding: 0 16px;
    }

    .ws-auth-logo img {
        width: 116px;
    }

    .ws-auth-main {
        padding: 0 0 40px;
    }

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

    .ws-auth-login,
    .ws-auth-register {
        padding: 36px 20px 40px;
    }

    .ws-auth-register__mark {
        width: 220px;
        top: 16px;
        right: -70px;
    }

    .ws-auth-legal {
        padding: 0 20px;
    }
}
