/* Flow Club - Registro e ingreso */
:root {
    --auth-bg: #050505;
    --auth-surface: #0d0d0d;
    --auth-surface-2: #151515;
    --auth-border: #292929;
    --auth-muted: #969696;
    --auth-text: #f5f5f5;
    --auth-accent: #e41779;
    --auth-accent-soft: rgba(228, 23, 121, .12);
    --auth-success: #55b978;
    --auth-danger: #d85f6d;
    --auth-radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--auth-bg);
}

body.auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 10% 5%, rgba(228, 23, 121, .10), transparent 28rem),
        radial-gradient(circle at 85% 30%, rgba(228, 23, 121, .06), transparent 24rem),
        var(--auth-bg);
    font-family: "Work Sans", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
label {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

.auth-header {
    width: min(100% - 28px, 1180px);
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
}

.auth-brand-mark {
    position: relative;
    width: 27px;
    height: 27px;
    display: inline-block;
}

.auth-brand-mark span {
    position: absolute;
    top: 2px;
    width: 10px;
    height: 23px;
    border: 2px solid var(--auth-accent);
    border-radius: 999px;
    transform: rotate(26deg);
}

.auth-brand-mark span:first-child {
    left: 4px;
}

.auth-brand-mark span:last-child {
    right: 3px;
    transform: rotate(-26deg);
}

.auth-header-link {
    color: #d9d9d9;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.auth-header-link:hover {
    color: var(--auth-accent);
}

.auth-shell {
    width: min(100% - 28px, 1180px);
    margin: 18px auto 64px;
    display: grid;
    gap: 26px;
}

.auth-intro {
    align-self: start;
    padding: 24px 4px 8px;
}

.auth-eyebrow,
.auth-section-heading > p {
    margin: 0 0 9px;
    color: var(--auth-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-intro h1 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(45px, 11vw, 78px);
    line-height: .88;
    text-transform: uppercase;
}

.auth-intro > p:not(.auth-eyebrow) {
    max-width: 580px;
    margin: 18px 0 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

.auth-intro strong {
    color: #fff;
}

.auth-rule {
    max-width: 560px;
    margin-top: 22px;
    padding: 13px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--auth-border);
    border-radius: 14px;
}

.auth-rule > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    border-radius: 50%;
}

.auth-rule strong {
    display: block;
    font-size: 12px;
}

.auth-rule span {
    display: block;
    margin-top: 3px;
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.4;
}

.auth-card {
    overflow: hidden;
    padding: 18px;
    background: rgba(13,13,13,.94);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
}

.register-progress {
    display: grid;
    grid-template-columns: auto minmax(14px, 1fr) auto minmax(14px, 1fr) auto minmax(14px, 1fr) auto;
    align-items: center;
    gap: 5px;
    margin-bottom: 28px;
}

.register-progress-step {
    min-width: 42px;
    padding: 0;
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #656565;
    background: none;
    border: 0;
    cursor: default;
}

.register-progress-step span {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid #343434;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    transition: all .2s ease;
}

.register-progress-step small {
    display: none;
    font-size: 8px;
    font-weight: 600;
}

.register-progress-step.active,
.register-progress-step.complete {
    color: #fff;
}

.register-progress-step.active span {
    color: #fff;
    background: var(--auth-accent);
    border-color: var(--auth-accent);
}

.register-progress-step.complete span {
    color: var(--auth-accent);
    border-color: rgba(228,23,121,.55);
    background: var(--auth-accent-soft);
}

.register-progress-line {
    height: 1px;
    background: #303030;
}

.register-step {
    animation: authStepIn .26s ease both;
}

@keyframes authStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-section-heading {
    margin-bottom: 23px;
}

.auth-section-heading h1,
.auth-section-heading h2 {
    margin: 0;
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(30px, 7vw, 42px);
    line-height: 1;
    text-transform: uppercase;
}

.auth-section-heading > span {
    display: block;
    max-width: 620px;
    margin-top: 8px;
    color: var(--auth-muted);
    font-size: 11px;
    line-height: 1.55;
}

.auth-section-heading strong {
    color: #fff;
}

.auth-field {
    display: grid;
    gap: 7px;
    margin-bottom: 17px;
}

.auth-field > label,
.auth-choice-section legend {
    color: #e8e8e8;
    font-size: 11px;
    font-weight: 600;
}

.auth-input-wrap {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    background: #111;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-input-wrap:focus-within {
    border-color: rgba(228,23,121,.72);
    box-shadow: 0 0 0 3px rgba(228,23,121,.08);
}

.auth-input-wrap > i,
.input-prefix,
.input-suffix {
    flex: 0 0 auto;
    color: #777;
    font-size: 12px;
}

.input-prefix {
    color: var(--auth-accent);
    font-weight: 700;
}

.auth-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 13px;
}

.auth-input-wrap input::placeholder,
.auth-field textarea::placeholder {
    color: #5d5d5d;
}

.password-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #777;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #fff;
    outline: none;
}

.field-status-icon {
    min-width: 18px;
    font-size: 12px;
}

.field-status-icon.available {
    color: var(--auth-success);
}

.field-status-icon.unavailable {
    color: var(--auth-danger);
}

.field-help,
.field-feedback {
    min-height: 0;
    color: #737373;
    font-size: 9px;
    line-height: 1.4;
}

.field-feedback {
    color: var(--auth-danger);
}

.field-feedback.success {
    color: var(--auth-success);
}

.auth-two-columns {
    display: grid;
    gap: 0;
}

.auth-check-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    color: #a5a5a5;
    font-size: 10px;
    line-height: 1.45;
    cursor: pointer;
}

.auth-check-row input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--auth-accent);
}

.auth-check-row.compact {
    align-items: center;
}

.register-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-top: 26px;
}

.register-actions.end {
    justify-content: flex-end;
}

.auth-primary-button,
.auth-secondary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}

.auth-primary-button {
    color: #fff;
    background: var(--auth-accent);
    border: 1px solid var(--auth-accent);
}

.auth-primary-button:hover,
.auth-primary-button:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

.auth-primary-button.full {
    width: 100%;
}

.auth-secondary-button {
    color: #ddd;
    background: transparent;
    border: 1px solid #363636;
}

.auth-secondary-button:hover,
.auth-secondary-button:focus-visible {
    color: #fff;
    border-color: #555;
    outline: none;
}

.auth-choice-section {
    min-width: 0;
    margin: 0 0 21px;
    padding: 0;
    border: 0;
}

.choice-help {
    margin: 5px 0 10px;
    color: var(--auth-muted);
    font-size: 9px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.choice-card {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card span {
    min-height: 43px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #a7a7a7;
    background: #111;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    transition: all .18s ease;
}

.choice-card input:checked + span {
    color: #fff;
    background: var(--auth-accent-soft);
    border-color: rgba(228,23,121,.65);
}

.choice-card input:focus-visible + span {
    outline: 2px solid rgba(228,23,121,.48);
    outline-offset: 2px;
}

.auth-select-wrap {
    position: relative;
}

.auth-select-wrap select {
    width: 100%;
    min-height: 48px;
    padding: 0 42px 0 13px;
    color: #fff;
    background: #111;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    outline: 0;
    appearance: none;
    font-size: 12px;
}

.auth-select-wrap select:focus {
    border-color: rgba(228,23,121,.72);
    box-shadow: 0 0 0 3px rgba(228,23,121,.08);
}

.auth-select-wrap i {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #707070;
    font-size: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.age-range-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 9px;
}

.age-range-row label {
    display: grid;
    gap: 6px;
}

.age-range-row label span {
    color: #777;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.age-range-row input {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    color: #fff;
    background: #111;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    outline: 0;
}

.age-range-separator {
    min-height: 46px;
    display: grid;
    place-items: center;
    color: #777;
}

.auth-field textarea {
    width: 100%;
    min-height: 125px;
    resize: vertical;
    padding: 13px;
    color: #fff;
    background: #111;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    outline: 0;
    font-size: 12px;
    line-height: 1.55;
}

.auth-field textarea:focus {
    border-color: rgba(228,23,121,.72);
    box-shadow: 0 0 0 3px rgba(228,23,121,.08);
}

.textarea-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #686868;
    font-size: 9px;
}

.contacts-heading {
    margin: 27px 0 12px;
}

.contacts-heading h3 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
}

.contacts-heading p {
    margin: 4px 0 0;
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.45;
}

.contact-register-list {
    display: grid;
    gap: 8px;
}

.contact-register-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #111;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
}

.contact-register-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    border-radius: 50%;
}

.contact-register-row > label:not(.privacy-toggle) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.contact-register-row > label:not(.privacy-toggle) span {
    color: #777;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.contact-register-row > label:not(.privacy-toggle) input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 11px;
}

.privacy-toggle {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #777;
    font-size: 9px;
    cursor: pointer;
}

.privacy-toggle input {
    position: absolute;
    opacity: 0;
}

.privacy-toggle > span {
    position: relative;
    width: 34px;
    height: 19px;
    background: #303030;
    border-radius: 999px;
    transition: background .18s ease;
}

.privacy-toggle > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    background: #aaa;
    border-radius: 50%;
    transition: transform .18s ease, background .18s ease;
}

.privacy-toggle input:checked + span {
    background: rgba(228,23,121,.34);
}

.privacy-toggle input:checked + span::after {
    background: var(--auth-accent);
    transform: translateX(15px);
}

.photo-register-rules {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.photo-register-rules > div {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: #a9a9a9;
    font-size: 10px;
}

.photo-register-rules i {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    border-radius: 50%;
}

.photo-dropzone {
    min-height: 144px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 20px;
    color: #9c9c9c;
    background: #101010;
    border: 1px dashed #3b3b3b;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.photo-dropzone:hover,
.photo-dropzone.is-dragover {
    background: rgba(228,23,121,.035);
    border-color: rgba(228,23,121,.58);
}

.photo-dropzone i {
    margin-bottom: 5px;
    color: var(--auth-accent);
    font-size: 29px;
}

.photo-dropzone strong {
    color: #fff;
    font-size: 12px;
}

.photo-dropzone span {
    font-size: 9px;
}

.register-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.register-photo-card {
    overflow: hidden;
    background: #111;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
}

.register-photo-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.register-photo-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.register-photo-badges {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    right: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.register-photo-badge {
    padding: 4px 6px;
    color: #fff;
    background: rgba(0,0,0,.68);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.register-photo-badge i {
    margin-right: 3px;
    color: var(--auth-accent);
}

.register-photo-actions {
    display: grid;
    gap: 1px;
    background: var(--auth-border);
}

.register-photo-actions button {
    min-height: 37px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #c9c9c9;
    background: #111;
    border: 0;
    font: inherit;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

.register-photo-actions button:hover {
    color: #fff;
    background: #181818;
}

.register-photo-actions button.remove {
    color: #dd929a;
}

.login-shell {
    width: min(100% - 28px, 500px);
    margin: clamp(48px, 12vh, 110px) auto 70px;
}

.login-card {
    padding: clamp(20px, 5vw, 34px);
}

.login-heading h1 {
    font-size: clamp(42px, 12vw, 64px);
}

.login-options {
    margin: 3px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.link-button {
    padding: 0;
    color: var(--auth-accent);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

.login-register-link {
    margin-top: 22px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #777;
    border-top: 1px solid var(--auth-border);
    font-size: 10px;
}

.login-register-link a {
    color: var(--auth-accent);
    font-weight: 700;
    text-decoration: none;
}

.demo-login-note {
    margin-top: 18px;
    padding: 11px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    color: #909090;
    background: rgba(255,255,255,.025);
    border: 1px solid #252525;
    border-radius: 12px;
}

.demo-login-note > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    border-radius: 50%;
}

.demo-login-note strong {
    display: block;
    color: #d9d9d9;
    font-size: 10px;
}

.demo-login-note span {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.4;
}

.auth-toast {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 20px;
    width: min(calc(100% - 28px), 430px);
    padding: 12px 15px;
    color: #fff;
    background: #181818;
    border: 1px solid rgba(228,23,121,.45);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    font-size: 10px;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: .18s ease;
}

.auth-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 560px) {
    .auth-card {
        padding: 26px;
    }

    .register-progress-step small {
        display: block;
    }

    .auth-two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .choice-grid.four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .choice-grid.interests {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-register-row {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .privacy-toggle {
        grid-column: auto;
    }

    .register-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .auth-shell {
        grid-template-columns: minmax(280px, .75fr) minmax(560px, 1.25fr);
        align-items: start;
        gap: 46px;
        margin-top: 38px;
    }

    .auth-intro {
        position: sticky;
        top: 26px;
        padding-top: 50px;
    }

    .auth-card {
        padding: 32px;
    }
}


/* Aviso de identidad privada en registro */
.private-identity-note {
    margin-bottom: 16px;
    padding: 11px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    background: rgba(228,23,121,.035);
    border: 1px solid rgba(228,23,121,.18);
    border-radius: 13px;
}

.private-identity-note > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    border-radius: 50%;
}

.private-identity-note strong {
    display: block;
    color: #efefef;
    font-size: 11px;
}

.private-identity-note span {
    display: block;
    margin-top: 3px;
    color: #8f8f8f;
    font-size: 9px;
    line-height: 1.4;
}


/* Verificación de teléfono en registro */
.phone-verification-field {
    margin-top: 2px;
}

.phone-verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.auth-inline-button {
    min-height: 48px;
    padding: 0 14px;
    color: #fff;
    background: var(--auth-accent);
    border: 1px solid var(--auth-accent);
    border-radius: 12px;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.auth-inline-button.secondary {
    color: #ddd;
    background: #171717;
    border-color: #343434;
}

.auth-inline-button:disabled {
    color: #9a9a9a;
    background: #1a1a1a;
    border-color: #2b2b2b;
    cursor: default;
    opacity: .8;
}

.phone-code-panel {
    margin-top: 9px;
    padding: 10px;
    background: rgba(255,255,255,.025);
    border: 1px solid #2c2c2c;
    border-radius: 12px;
}

.phone-prototype-code {
    display: inline-flex;
    margin-top: 7px;
    padding: 5px 8px;
    color: #bcbcbc;
    background: #101010;
    border: 1px dashed #3a3a3a;
    border-radius: 7px;
    font-size: 8px;
}

@media (max-width: 520px) {
    .phone-verification-row {
        grid-template-columns: 1fr;
    }

    .auth-inline-button {
        width: 100%;
    }
}
