/* Alta de clientes con el diseño de la app. Usa los tokens y la imagen de login-app.css */

html,
body.login-area {
    background: #000000;
}

/* Una sola columna centrada: imagen arriba y formulario debajo */
.fwd-reg {
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #000000;
}

.fwd-reg .fwd-login__hero {
    position: relative;
    display: block;
    flex: none;
    width: 100%;
    height: 300px;
    min-height: 0;
    background: url('/images/bg.jpg') center 35% / cover no-repeat;
}

.fwd-reg .fwd-login__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 40%, #000000 100%),
        rgba(26, 24, 19, 0.35);
}

.fwd-reg .fwd-login__hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.fwd-reg .fwd-login__hero .fwd-login__brand--hero {
    text-align: center;
}

.fwd-reg .fwd-login__hero-title {
    margin-bottom: 10px;
    color: var(--fwd-text-primary);
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -0.4px;
    font-weight: 800;
    font-stretch: 110%;
    font-variation-settings: 'wght' 800, 'wdth' 110;
}

.fwd-reg .fwd-login__hero .fwd-login__subtitle {
    max-width: 480px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

.fwd-reg__main {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 32px;
}

/* Cabecera */
.fwd-reg__brand,
.fwd-reg__nav {
    display: none;
}

.fwd-reg__title {
    margin: 0 0 10px;
    color: var(--fwd-text-primary);
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.3px;
    font-weight: 800;
    font-stretch: 110%;
    font-variation-settings: 'wght' 800, 'wdth' 110;
}

.fwd-reg__lead {
    margin: 0;
    color: var(--fwd-text-secondary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.fwd-reg__req {
    color: var(--fwd-accent);
}

/* Secciones */
.fwd-reg__section {
    padding: 36px 0;
    border-top: 1px solid var(--fwd-border);
    scroll-margin-top: 24px;
}

.fwd-reg__header {
    margin-bottom: 36px;
    text-align: center;
}

.fwd-reg__section-title {
    margin: 0 0 24px;
    color: var(--fwd-text-primary);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.fwd-reg__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px 16px;
}

.fwd-reg__col-2 { grid-column: span 2; }
.fwd-reg__col-3 { grid-column: span 3; }
.fwd-reg__col-4 { grid-column: span 4; }
.fwd-reg__col-6 { grid-column: span 6; }
.fwd-reg__col-8 { grid-column: span 8; }
.fwd-reg__col-12 { grid-column: span 12; }

/* Campos */
.fwd-reg__label {
    display: block;
    margin-bottom: 8px;
    color: var(--fwd-field-label);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.fwd-reg__hint {
    color: var(--fwd-text-muted);
    font-weight: 400;
}

.fwd-reg__input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 15px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--fwd-field);
    color: var(--fwd-text-primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    color-scheme: dark;
    transition: box-shadow .2s;
}

.fwd-reg__input::placeholder {
    color: var(--fwd-text-muted);
    opacity: 1;
}

.fwd-reg__input:focus {
    box-shadow: 0 0 0 2px rgba(245, 208, 46, 0.45);
}

.fwd-reg__input:-webkit-autofill,
.fwd-reg__input:-webkit-autofill:hover,
.fwd-reg__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--fwd-text-primary);
    -webkit-box-shadow: 0 0 0 1000px var(--fwd-field) inset;
    caret-color: var(--fwd-text-primary);
}

select.fwd-reg__input {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9AA2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    cursor: pointer;
}

select.fwd-reg__input option {
    background: var(--fwd-field);
    color: var(--fwd-text-primary);
}

textarea.fwd-reg__input {
    min-height: 104px;
    resize: vertical;
    line-height: 1.5;
}

input[type="file"].fwd-reg__input {
    padding: 10px 12px;
    color: var(--fwd-text-secondary);
    cursor: pointer;
}

input[type="file"].fwd-reg__input::file-selector-button {
    margin-right: 14px;
    padding: 8px 16px;
    border: 1px solid var(--fwd-border);
    border-radius: 30px;
    background: transparent;
    color: var(--fwd-text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Preguntas de sí/no: interruptor que despliega el detalle */
.fwd-reg__toggles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.fwd-reg__toggle {
    border-radius: 14px;
    background: var(--fwd-field);
}

.fwd-reg__toggle--detail:has(input[type="checkbox"]:checked) {
    grid-column: 1 / -1;
}

.fwd-reg__switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px;
    color: var(--fwd-text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}

.fwd-reg__switch input,
.fwd-reg__chip input,
.fwd-reg__option input,
.fwd-reg__check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.fwd-reg__switch-ui {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    transition: background .2s;
}

.fwd-reg__switch-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fwd-text-primary);
    transition: transform .2s, background .2s;
}

.fwd-reg__switch input:checked + .fwd-reg__switch-ui {
    background: var(--fwd-accent);
}

.fwd-reg__switch input:checked + .fwd-reg__switch-ui::after {
    transform: translateX(18px);
    background: #000000;
}

.fwd-reg__switch input:focus-visible + .fwd-reg__switch-ui,
.fwd-reg__chip input:focus-visible + span,
.fwd-reg__option input:focus-visible + .fwd-reg__option-body,
.fwd-reg__check input:focus-visible + .fwd-reg__check-box {
    box-shadow: 0 0 0 2px rgba(245, 208, 46, 0.45);
}

.fwd-reg__detail {
    padding: 0 16px 16px;
}

.fwd-reg__detail .fwd-reg__input {
    background: rgba(0, 0, 0, 0.35);
}

/* Selección múltiple (deportes, objetivos) */
.fwd-reg__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fwd-reg__chip {
    margin: 0;
    cursor: pointer;
}

.fwd-reg__chip span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid var(--fwd-border);
    border-radius: 30px;
    color: var(--fwd-text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, background .2s, color .2s;
}

.fwd-reg__chip:hover span {
    border-color: rgba(255, 255, 255, 0.3);
}

.fwd-reg__chip input:checked + span {
    border-color: var(--fwd-accent);
    background: var(--fwd-accent);
    color: #000000;
}

.fwd-reg__chip-input {
    flex: 1 1 180px;
    max-width: 260px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 30px;
}

.fwd-reg__extra {
    margin-top: 12px;
}

/* Opción única (índice de actividad) */
.fwd-reg__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fwd-reg__option {
    margin: 0;
    cursor: pointer;
}

.fwd-reg__option-body {
    display: block;
    height: 100%;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--fwd-field);
    transition: border-color .2s;
}

.fwd-reg__option-body strong {
    display: block;
    margin-bottom: 4px;
    color: var(--fwd-text-primary);
    font-size: 15px;
    font-weight: 700;
}

.fwd-reg__option-body small {
    display: block;
    color: var(--fwd-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.fwd-reg__option input:checked + .fwd-reg__option-body {
    border-color: var(--fwd-accent);
}

/* Casillas de privacidad */
.fwd-reg__checks {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fwd-reg__check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    cursor: pointer;
}

.fwd-reg__check-box {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: background .2s, border-color .2s;
}

.fwd-reg__check input:checked + .fwd-reg__check-box {
    border-color: var(--fwd-accent);
    background: var(--fwd-accent);
}

.fwd-reg__check input:checked + .fwd-reg__check-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 6px;
    height: 11px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.fwd-reg__check-text {
    color: var(--fwd-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.fwd-reg__check-text strong {
    color: var(--fwd-text-primary);
    font-weight: 600;
}

/* Acciones */
.fwd-reg__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 36px;
    border-top: 1px solid var(--fwd-border);
}

.fwd-reg__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 26px;
    border: 1px solid var(--fwd-border);
    border-radius: 30px;
    color: var(--fwd-text-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.fwd-reg__back:hover {
    border-color: var(--fwd-gold);
    color: var(--fwd-gold);
}

.fwd-reg__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 36px;
    border: 0;
    border-radius: 30px;
    background: var(--fwd-accent);
    color: #000000;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    transition: filter .2s, opacity .2s;
}

.fwd-reg__submit:hover {
    filter: brightness(1.05);
}

.fwd-reg__submit:disabled {
    opacity: .8;
    cursor: default;
}

/* Solicitud enviada */
.fwd-reg__success {
    padding: 64px 0;
    text-align: center;
}

.fwd-reg__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--fwd-accent);
    color: #000000;
}

.fwd-reg__success-icon svg {
    width: 34px;
    height: 34px;
}

.fwd-reg__success .fwd-reg__lead {
    max-width: 420px;
    margin: 0 auto 32px;
}

.fwd-reg__footer {
    padding-top: 40px;
    text-align: center;
    color: var(--fwd-text-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
}

@media (min-width: 768px) {
    .fwd-reg .fwd-login__hero {
        height: 380px;
    }

    .fwd-reg .fwd-login__hero-title {
        font-size: 48px;
    }

    .fwd-reg .fwd-login__hero .fwd-login__subtitle {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .fwd-reg__col-4,
    .fwd-reg__col-6,
    .fwd-reg__col-8 {
        grid-column: span 12;
    }

    .fwd-reg__col-2,
    .fwd-reg__col-3 {
        grid-column: span 6;
    }

    .fwd-reg__options {
        grid-template-columns: 1fr;
    }

    .fwd-reg__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .fwd-reg__chip-input {
        max-width: none;
    }
}
