/*
 * WÖRTH Selection · páginas de cuenta
 * Registro de candidato, registro de empresa, recuperar y restablecer
 * contraseña. Se carga después de ws-auth.css y reutiliza su estructura
 * (dos paneles, título, panel verde) para que todo el acceso se vea igual.
 */

/* Variante de dos paneles con el formulario más ancho (registro de empresa) */

.ws-auth-panels--form {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    max-width: 1080px;
}

.ws-auth-panels--form .ws-auth-login {
    padding-left: 56px;
    padding-right: 56px;
}

/* Un solo panel centrado (recuperar y restablecer contraseña) */

.ws-auth-single {
    max-width: 520px;
    margin: 0 auto;
    padding: 56px 24px 24px;
}

.ws-auth-single .ws-auth-title {
    margin-bottom: 16px;
}

.ws-auth-intro {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
    color: var(--ws-muted);
}

.ws-auth-login .ws-auth-intro {
    margin-top: -24px;
}

/* Formularios */

.ws-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.ws-form-grid > .ws-field--full {
    grid-column: 1 / -1;
}

.ws-form-section {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
}

.ws-form-section + .ws-form-section {
    margin-top: 18px;
    padding-top: 26px;
    border-top: 1px solid var(--ws-line);
}

/* La leyenda flota para que la línea superior no la atraviese */
.ws-form-section legend {
    float: left;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    font-family: var(--ws-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ws-forest);
}

.ws-form-section > .ws-form-grid {
    clear: both;
}

.ws-optional {
    font-weight: 400;
    color: var(--ws-muted);
}

.ws-hint {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ws-muted);
}

.ws-field .ws-input[aria-invalid="true"],
.ws-field .ws-select[aria-invalid="true"] {
    border-color: var(--ws-danger);
}

.ws-check a {
    color: var(--ws-forest);
    font-weight: 600;
    text-underline-offset: 3px;
}

.ws-auth-consent {
    align-items: flex-start;
    margin: 4px 0 14px;
    line-height: 1.5;
}

.ws-check input {
    flex: 0 0 auto;
}

.ws-auth-consent input {
    margin-top: 1px;
}

/* Páginas largas: el botón del panel verde queda bajo su contenido */
.ws-auth-register--top .ws-btn {
    margin-top: 0;
}

.ws-auth-consent + .ws-check {
    margin-bottom: 28px;
}

.ws-auth-submit {
    margin-top: 10px;
}

.ws-auth-back {
    display: block;
    margin: 22px 0 0;
    font-size: 14px;
    text-align: center;
}

.ws-auth-back a {
    color: var(--ws-forest);
    font-weight: 600;
    text-underline-offset: 3px;
}

.ws-alert ul {
    margin: 0;
    padding-left: 18px;
}

.ws-alert--ok {
    border-left-color: var(--ws-ok);
    background: #ECFDF3;
    color: var(--ws-ok);
}

/* Panel verde: pasos (registro de empresa) */

.ws-auth-steps {
    position: relative;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
    counter-reset: paso;
}

.ws-auth-steps li {
    position: relative;
    padding: 12px 0 12px 46px;
    border-top: 1px solid rgba(201, 167, 117, .25);
    font-size: 15px;
    line-height: 1.45;
    counter-increment: paso;
}

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

.ws-auth-steps li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: 12px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--ws-sand);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-sand);
}

.ws-auth-steps strong {
    display: block;
    color: #fff;
    font-weight: 600;
}

/* Confirmación (registro de empresa) */

.ws-auth-done {
    text-align: center;
}

.ws-auth-done[hidden] {
    display: none;
}

.ws-auth-done__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--ws-forest-soft);
    color: var(--ws-forest);
}

.ws-auth-done p {
    margin: 0 auto 14px;
    max-width: 44ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ws-ink);
}

.ws-auth-done .ws-btn {
    margin-top: 18px;
}

/* Responsive */

@media (max-width: 880px) {
    .ws-auth-panels--form {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .ws-auth-panels--form .ws-auth-login {
        padding-left: 36px;
        padding-right: 36px;
    }
}

@media (max-width: 720px) {
    .ws-auth-panels--form .ws-auth-login {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ws-auth-single {
        padding-top: 36px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 520px) {
    .ws-form-grid {
        grid-template-columns: 1fr;
    }
}
