@import url('/components/theme/skyrock.css');

/* Register menu — rebuilt in the SkyRock admin style. Markup/JS unchanged. */

body {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 100vh; padding: 24px;
}

.menu-login {
    width: 26rem; max-width: 94vw;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 40px 32px;
    display: flex; flex-direction: column; align-items: center;
}

.menu-login-icon { text-align: center; margin-bottom: 20px; width: 100%; }
.icon {
    display: block; height: 4rem; width: 100%;
    background-image: url('/components/files/icons/OfficialSkyRockWhiteLogo.svg');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    margin-bottom: 10px;
}
.menu-login-icon-text, .menu-register-icon-text { color: var(--muted); font-size: 0.95rem; margin: 0; }

.menu-login-form { width: 100%; }
.menu-login-form form { display: flex; flex-direction: column; }

.menu-login-form input, .selector {
    width: 100%;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    color: var(--white);
    padding: 0.6rem 0.7rem;
    font-size: 1rem;
    margin-bottom: 12px;
    color-scheme: dark;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.menu-login-form input::placeholder { color: var(--muted-2); }
.menu-login-form input:focus-visible, .selector:focus-visible {
    outline: none; border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 18px 2px rgba(255, 255, 255, 0.11);
}

/* Date + gender labelled rows */
.inputDate { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
.inputDate p { margin: 0; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.inputDate input, .inputDate .selector { margin-bottom: 4px; }

/* Birthday field — dressed in the SkyRock vibe: a gold calendar glyph on the left, a
   gold-tinted picker button on the right, a gold focus ring, and the day/month/year
   segment you're editing lit up in gold. Scoped under .inputDate so it outranks the shared
   field background rule (whose `background` shorthand would otherwise wipe the glyph). */
.inputDate .date-input {
    width: 100%; min-height: 2.7rem; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    padding-left: 2.5rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
    background-color: rgba(0, 0, 0, 0.28);
    background-repeat: no-repeat; background-position: 0.75rem center; background-size: 1.05rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9c08a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9.5h18M8 3v3M16 3v3'/%3E%3C/svg%3E");
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.inputDate .date-input:hover { border-color: rgba(217, 192, 138, 0.45); }
.inputDate .date-input:focus-visible {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 192, 138, 0.22);
}
.date-input:required:invalid { color: var(--muted-2); }            /* empty → placeholder-toned */
.date-input::-webkit-datetime-edit { padding: 1px 0; }
.date-input::-webkit-datetime-edit-text { color: var(--muted-2); padding: 0 2px; } /* the date separators */
/* Highlight the segment currently being edited in gold. */
.date-input::-webkit-datetime-edit-day-field:focus,
.date-input::-webkit-datetime-edit-month-field:focus,
.date-input::-webkit-datetime-edit-year-field:focus {
    background: rgba(217, 192, 138, 0.20); color: var(--gold);
    border-radius: 3px; outline: none;
}
.date-input::-webkit-calendar-picker-indicator {
    filter: invert(78%) sepia(18%) saturate(560%) hue-rotate(2deg) brightness(92%); /* → gold-ish */
    opacity: 0.85; cursor: pointer; transition: opacity 0.18s ease;
}
.date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.menu-login-form button {
    width: 100%; margin-top: 14px;
    border: none; border-radius: var(--r-sm);
    padding: 0.7rem; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em;
    cursor: pointer; color: var(--metalFont);
}
.menu-login-form button:hover { filter: brightness(1.05); }

.menu-login-extras { margin-top: 20px; color: var(--muted); font-size: 0.9rem; display: flex; justify-content: center; width: 100%; }
.menu-login-extras-register-link { display: flex; gap: 8px; align-items: center; }
.menu-login-extras-register-link a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.menu-login-extras-register-link a:hover { color: var(--gold); }

.icons8Ref { display: block; text-align: center; color: var(--muted-2); font-size: 0.78rem; padding: 12px; text-decoration: none; }

/* Password guidance — a quiet line that brightens to gold once the minimum is met,
   matching the SkyRock gold-accent system. Reassuring, not scolding. */
.pw-hint {
    display: flex; align-items: center; gap: 8px;
    margin: -6px 0 12px; padding: 0 2px;
    color: var(--muted-2); font-size: 0.76rem; letter-spacing: 0.01em;
    transition: color 0.28s ease;
}
.pw-hint-dot {
    width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%;
    background: var(--muted-2);
    box-shadow: 0 0 0 0 rgba(217, 192, 138, 0);
    transition: background 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}
.pw-hint-text { transition: color 0.28s ease; }
.pw-hint.is-valid { color: var(--gold); }
.pw-hint.is-valid .pw-hint-dot {
    background: var(--gold);
    box-shadow: 0 0 10px 1px rgba(217, 192, 138, 0.55);
    transform: scale(1.14);
}
@media (prefers-reduced-motion: reduce) {
    .pw-hint, .pw-hint-dot, .pw-hint-text { transition: none; }
    .pw-hint.is-valid .pw-hint-dot { transform: none; }
}

/* Terms & Conditions: agreement checkbox + read modal */
.register-terms-check {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 6px 0 4px; color: var(--muted); font-size: 0.82rem; line-height: 1.4;
}
.register-terms-check input { width: auto; margin: 2px 0 0; flex: 0 0 auto; }
.register-terms-check a { color: var(--white); border-bottom: 1px solid var(--gold); text-decoration: none; padding-bottom: 1px; }
.register-terms-check a:hover { color: var(--gold); }

/* Aviso de Privacidad: delivered at collection (Ley 1581) — quiet link under the terms row */
.register-privacy-note { margin: 2px 0 4px; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.register-privacy-note a { color: var(--white); border-bottom: 1px solid var(--gold); text-decoration: none; padding-bottom: 1px; }
.register-privacy-note a:hover { color: var(--gold); }

/* Cloudflare Turnstile. The widget renders its own fixed-size iframe, so this only places
   it in the form's rhythm and keeps it from overflowing a narrow viewport. */
.register-captcha { margin: 8px 0 4px; min-height: 65px; }
.register-captcha iframe { max-width: 100%; }

.terms-modal {
    position: fixed; inset: 0; z-index: 80;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(0, 0, 0, 0.62);
}
.terms-modal[hidden] { display: none; }
.terms-modal-card {
    width: 44rem; max-width: 96vw; max-height: 86vh;
    display: flex; flex-direction: column;
    background: var(--panel, #1c1c1c); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow); padding: 22px 24px;
}
.terms-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.terms-modal-title { margin: 0; color: var(--white); font-size: 1.05rem; font-weight: 600; }
.terms-modal-close { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.terms-modal-close:hover { color: var(--white); }
.terms-modal-date { margin: 6px 0 0; color: var(--muted-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.terms-modal-body {
    margin: 12px 0; padding: 12px 14px; overflow: auto;
    background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: var(--r-sm);
    color: var(--muted); font-size: 0.85rem; line-height: 1.55; font-family: inherit;
    white-space: pre-wrap; word-break: break-word;
}
.terms-modal-actions { display: flex; justify-content: flex-end; }
.terms-modal-actions button {
    border: none; border-radius: var(--r-sm); padding: 0.55rem 1rem;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; color: var(--metalFont);
}
