/* Login del backoffice con el diseño de la app (dark "luxury fitness") */

@font-face {
    font-family: 'Archivo';
    src: url('/resources/fonts/Archivo.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

:root {
    --fwd-background: #000000;
    --fwd-field: #1C1F2A;
    --fwd-accent: #F5D02E;
    --fwd-gold: #E8C75A;
    --fwd-text-primary: #FFFFFF;
    --fwd-text-secondary: #9A9AA2;
    --fwd-text-muted: #5E5E66;
    --fwd-field-label: #C9C9CF;
    --fwd-border: rgba(255, 255, 255, 0.12);
}

body.login-area {
    background: var(--fwd-background);
}

body.login-area .main-content {
    background: none;
}

body.login-area #preloader {
    background-color: var(--fwd-background);
}

.fwd-login {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: radial-gradient(ellipse 110% 110% at 50% 12.5%, #1A1813 0%, #000000 70%);
    font-family: 'Archivo', sans-serif;
    color: var(--fwd-text-primary);
}

.fwd-login__inner {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    padding: 40px 28px 16px;
    display: flex;
    flex-direction: column;
}

/* Imagen lateral (solo escritorio), como el login anterior */
.fwd-login__hero {
    display: none;
}

@media (min-width: 992px) {
    .fwd-login {
        background: var(--fwd-background);
    }

    .fwd-login__hero {
        position: relative;
        display: block;
        flex: 0 0 50%;
        min-height: 100vh;
        background: url('/images/bg.jpg') center / cover no-repeat;
    }

    .fwd-login__hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0) 55%, #000000 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.9) 100%),
            rgba(26, 24, 19, 0.35);
    }

    .fwd-login__hero-content {
        position: relative;
        z-index: 1;
        height: 100%;
        padding: 40px 56px 56px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .fwd-login__hero .fwd-login__brand--hero {
        text-align: left;
    }

    .fwd-login__hero-title {
        color: var(--fwd-text-primary);
        font-size: 48px;
        line-height: 1.05;
        letter-spacing: -0.5px;
        font-weight: 800;
        font-stretch: 110%;
        font-variation-settings: 'wght' 800, 'wdth' 110;
        margin-bottom: 12px;
    }

    .fwd-login__hero .fwd-login__subtitle {
        max-width: 420px;
        color: rgba(255, 255, 255, 0.75);
        font-size: 17px;
    }

    /* El formulario ocupa la mitad derecha con el degradado de la app */
    .fwd-login__inner {
        flex: 1 1 50%;
        max-width: none;
        padding: 40px calc((50vw - 420px) / 2 + 28px) 16px;
        background: radial-gradient(ellipse 110% 110% at 50% 12.5%, #1A1813 0%, #000000 70%);
    }

    .fwd-login__brand--form {
        visibility: hidden;
    }
}

.fwd-login__brand {
    text-align: center;
}

.fwd-login__logo {
    height: 44px;
}

.fwd-login__spacer {
    flex: 2;
    min-height: 40px;
}

.fwd-login__spacer--bottom {
    flex: 3;
}

.fwd-login__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-login__subtitle {
    margin: 0;
    color: var(--fwd-text-secondary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.fwd-login__subtitle--form {
    margin-bottom: 36px;
}

.fwd-login__field {
    margin-bottom: 20px;
}

.fwd-login__label {
    display: block;
    margin-bottom: 8px;
    color: var(--fwd-field-label);
    font-size: 13px;
    font-weight: 500;
}

.fwd-login__control {
    position: relative;
    background: var(--fwd-field);
    border-radius: 14px;
}

.fwd-login__input {
    width: 100%;
    padding: 18px 16px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--fwd-text-primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: box-shadow .2s;
}

.fwd-login__input:focus {
    box-shadow: 0 0 0 2px rgba(245, 208, 46, 0.45);
}

/* Evita el fondo amarillo/blanco del autocompletado del navegador */
.fwd-login__input:-webkit-autofill,
.fwd-login__input:-webkit-autofill:hover,
.fwd-login__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);
}

.fwd-login__input--password {
    padding-right: 52px;
}

.fwd-login__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fwd-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fwd-login__toggle:hover {
    color: var(--fwd-text-primary);
}

.fwd-login__toggle svg {
    width: 22px;
    height: 22px;
}

.fwd-login__submit {
    width: 100%;
    height: 56px;
    margin-top: 8px;
    border: 0;
    border-radius: 30px;
    background: var(--fwd-accent);
    color: #000000;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter .2s, opacity .2s;
}

.fwd-login__submit:hover {
    filter: brightness(1.05);
}

.fwd-login__submit:disabled {
    opacity: .8;
    cursor: default;
}

.fwd-login__divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--fwd-border);
    opacity: 1;
}

.fwd-login__register {
    width: 100%;
    height: 52px;
    border: 1px solid var(--fwd-border);
    border-radius: 30px;
    color: var(--fwd-text-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s;
}

.fwd-login__register:hover {
    border-color: var(--fwd-gold);
    color: var(--fwd-gold);
}

.fwd-login__footer {
    padding-top: 24px;
    text-align: center;
    color: var(--fwd-text-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
}

/* Recuperar contraseña */
.fwd-login [hidden] {
    display: none !important;
}

.fwd-login__forgot {
    display: block;
    margin: -8px 0 24px;
    text-align: right;
    color: var(--fwd-text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.fwd-login__forgot:hover {
    color: var(--fwd-gold);
}

a.fwd-login__submit {
    color: #000000;
    text-decoration: none;
}

.fwd-login__subtitle strong {
    color: var(--fwd-text-primary);
    font-weight: 600;
    word-break: break-all;
}

.fwd-login__rules {
    margin: -8px 0 20px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    color: var(--fwd-text-muted);
    font-size: 13px;
}

.fwd-login__rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .2s;
}

.fwd-login__rules li::before {
    content: '';
    flex: 0 0 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transition: background-color .2s, border-color .2s;
}

.fwd-login__rules li.is-ok {
    color: var(--fwd-text-secondary);
}

.fwd-login__rules li.is-ok::before {
    border-color: var(--fwd-accent);
    background: var(--fwd-accent) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m4 8.5 2.5 2.5L12 5.5'/%3e%3c/svg%3e") center / 10px no-repeat;
}

.fwd-login__state-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: rgba(245, 208, 46, 0.12);
    color: var(--fwd-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fwd-login__state-icon svg {
    width: 26px;
    height: 26px;
}

.fwd-login__state-icon--error {
    background: rgba(255, 107, 107, 0.12);
    color: #FF6B6B;
}
