/* The sign-up wizard of view/user-registration.php in Storg's look: the form beside the live
   preview of the public profile, on the theme's grounds. Loaded after user-registration.css,
   whose white card and fields it redraws with the tokens of storg-tokens.css. */

.signup-page {
    min-height: 100vh;
    background: var(--bg-page);
    background-image: none;
}

.signup-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-16) var(--space-24);
    border-bottom: 1px solid var(--border-default);
    background: var(--surface-card);
}

.signup-brand {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
}

.signup-layout {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 560px);
    justify-content: center;
    align-items: start;
    gap: var(--space-32);
    padding: var(--space-32) var(--space-16);
}

.signup-page .sign-up-container {
    width: auto;
    margin: 0;
    padding: var(--space-24);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: none;
    color: var(--text-primary);
}

.signup-page .signup-heading {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 29px;
}

.signup-heading:focus {
    outline: none;
}

.signup-subtitle {
    margin: var(--space-8) 0 var(--space-16);
    color: var(--text-body);
}

.signup-page .row {
    padding: var(--space-16) 0 0;
    color: var(--text-primary);
}

.signup-page input.input-box-330 {
    min-height: var(--field-height);
    padding: var(--space-10) var(--space-12);
    border: 1px solid var(--border-control);
    border-radius: var(--radius-sm);
    background: var(--surface-input);
    color: var(--text-primary);
}

.signup-page input.input-box-330:focus,
.signup-page input.input-box-330:hover {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.signup-page .field-hint,
.signup-page .field-help,
.signup-page .simple-text {
    color: var(--text-body);
}

.signup-page .sign-up-container a {
    color: var(--link);
}

.signup-actions {
    display: flex;
    gap: var(--space-10);
    margin: var(--space-24) 0 var(--space-16);
}

.signup-actions .storg-button {
    flex: 1;
}

.signup-page .sign-btn {
    width: auto;
    margin: 0;
    font-family: var(--font-foxe);
}

.signup-preview {
    position: sticky;
    top: var(--space-24);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 960px) {
    .signup-layout {
        grid-template-columns: minmax(0, 480px);
    }

    .signup-preview {
        display: none;
    }
}

/* The welcome's two account cards, the radio drawn as part of the card. */
.signup-kinds {
    display: grid;
    gap: var(--space-12);
}

.signup-kind {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "radio title" "icon text";
    gap: var(--space-4) var(--space-12);
    padding: var(--space-16);
    border: 1px solid var(--border-control);
    border-radius: var(--radius-lg);
    background: var(--surface-input);
    color: var(--text-primary);
    cursor: pointer;
}

.signup-kind:hover,
.signup-kind:focus-within {
    box-shadow: var(--shadow-focus);
}

.signup-kind:has(input:checked) {
    border-color: var(--primary);
    background: var(--tint-primary);
}

.signup-kind input {
    grid-area: radio;
    margin: 0;
    accent-color: var(--primary);
}

.signup-kind strong {
    grid-area: title;
}

.signup-kind-icon {
    grid-area: icon;
    color: var(--primary);
    font-size: 20px;
}

.signup-kind span {
    grid-area: text;
    color: var(--text-body);
}

/* The account step speaks of an invitation, and counts no steps, for an account sin agenda médica. */
.signup-team-hint,
form[data-account-kind="team_member"] [data-step-counter] {
    display: none;
}

form[data-account-kind="team_member"] .signup-team-hint {
    display: flex;
}

/* The photo step: the round avatar and its camera badge, the counter under Acerca de mí. */
.signup-photo {
    display: grid;
    justify-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.signup-photo-avatar {
    position: relative;
    width: 112px;
    height: 112px;
    cursor: pointer;
}

.signup-photo-picture {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid var(--border-control);
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 64px;
}

.signup-photo-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signup-photo-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--surface-card);
    border-radius: 50%;
    background: var(--accent-save);
    color: var(--on-accent-save);
}

.signup-photo:focus-within .signup-photo-picture {
    box-shadow: var(--shadow-focus);
}

.signup-photo-rules {
    margin: 0;
    color: var(--text-body);
    font-size: 14px;
}

.signup-about-counter {
    margin: calc(-1 * var(--space-8)) 0 0;
    color: var(--text-body);
    font-size: 14px;
    text-align: right;
}

.signup-about-counter.is-over {
    color: var(--danger-text);
}

/* Vista previa: the preview moved into the form, wide, with a pencil on each section. */
.signup-layout.is-reviewing {
    grid-template-columns: minmax(0, 820px);
}

.signup-layout.is-reviewing .signup-preview {
    display: none;
}

.practice-preview [data-preview-section] {
    position: relative;
}

.practice-preview-edit {
    display: none;
}

.practice-preview.is-reviewing .practice-preview-edit {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-control);
    border-radius: 50%;
    background: var(--surface-card);
    color: var(--primary);
    cursor: pointer;
}

.practice-preview.is-reviewing .practice-preview-edit-week {
    position: static;
    margin: 0 0 var(--space-8) auto;
}

.practice-preview.is-reviewing .practice-preview-edit:hover,
.practice-preview.is-reviewing .practice-preview-edit:focus-visible {
    box-shadow: var(--shadow-focus);
}

.signup-actions {
    flex-wrap: wrap;
}

/* The form's container centres its text; the cards, the map's address and the preview do not. */
.signup-kind,
.signup-page .map-location-address,
.signup-review {
    text-align: left;
}
