#mr-registration,
#mr-registration * { box-sizing: border-box; }

#mr-registration {
    --mr-orange: #f97316;
    --mr-orange-dark: #c2410c;
    --mr-black: #111111;
    --mr-muted: #666666;
    --mr-border: #e6e6e6;
    --mr-bg: #f7f7f7;
    --mr-white: #ffffff;
    font-family: inherit;
    color: var(--mr-black);
    padding: 24px 12px;
}

.mr-shell {
    width: min(760px, 100%);
    margin: 0 auto;
    background: var(--mr-white);
    border: 1px solid var(--mr-border);
    border-radius: 24px;
    padding: clamp(20px, 5vw, 44px);
    box-shadow: 0 16px 45px rgba(0,0,0,.07);
}

/* Título de lista de espera: único elemento adicional de la pantalla inicial. */
.mr-waitlist-title {
    margin: 0 0 24px;
    text-align: center;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 4.5vw, 2.15rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--mr-black);
    text-wrap: balance;
    animation: mr-waitlist-in .7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes mr-waitlist-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}


.mr-login-option {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 12px 16px;
    border: 1px solid var(--mr-border);
    border-radius: 14px;
    background: #fafafa;
    color: var(--mr-muted);
    font-size: .92rem;
}
.mr-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--mr-orange);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    transition: background .16s, transform .16s;
}
.mr-login-button:hover,
.mr-login-button:focus {
    background: var(--mr-orange-dark);
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.mr-header { margin-bottom: 26px; }
.mr-kicker { color: var(--mr-orange-dark); font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
.mr-header h1 { margin: 7px 0 8px; font-size: clamp(1.65rem, 5vw, 2.35rem); line-height: 1.1; }
.mr-header p { margin: 0; color: var(--mr-muted); }

.mr-progress { display: flex; align-items: center; margin: 24px 0 30px; }
.mr-progress-step {
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: #eee; color: #777; font-size: .82rem; font-weight: 800;
}
.mr-progress-step.is-active, .mr-progress-step.is-complete { background: var(--mr-orange); color: #fff; }
.mr-progress-line { height: 2px; background: #eee; flex: 1; }
.mr-progress-step.is-complete + .mr-progress-line { background: var(--mr-orange); }

.mr-step { display: none; }
.mr-step.is-active { display: block; animation: mr-in .2s ease-out; }
@keyframes mr-in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.mr-account-grid { display: grid; gap: 12px; }
.mr-account-card {
    text-align: left; border: 2px solid var(--mr-border); background: #fff;
    border-radius: 18px; padding: 18px; cursor: pointer; color: var(--mr-black);
    display: grid; grid-template-columns: auto 1fr; column-gap: 13px; row-gap: 4px;
    transition: border-color .16s, box-shadow .16s, transform .16s;
}
.mr-account-card:hover { border-color: #bbb; transform: translateY(-1px); }
.mr-account-card.is-selected { border-color: var(--mr-orange); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
.mr-icon { grid-row: span 2; font-size: 1.8rem; }
.mr-account-card strong { font-size: 1.05rem; }
.mr-account-card span:last-child { color: var(--mr-muted); font-size: .9rem; line-height: 1.45; }

.mr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mr-span-2 { grid-column: span 2; }
.mr-step h2 { font-size: 1.35rem; margin: 0 0 18px; }

label { display: block; font-weight: 700; font-size: .9rem; }
input, select, textarea {
    width: 100%; margin-top: 7px; padding: 13px 14px;
    border: 1px solid #d7d7d7; border-radius: 12px; background: #fff;
    color: var(--mr-black); font: inherit; outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--mr-orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,.13);
}
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: #c62828; }
small, .mr-helper { display: block; color: var(--mr-muted); margin-top: 6px; font-size: .78rem; font-weight: 400; }

.mr-password { position: relative; display: block; }
.mr-password input { padding-right: 75px; }
.mr-toggle-password {
    position: absolute; right: 8px; bottom: 8px; border: 0; background: transparent;
    color: var(--mr-orange-dark); font-weight: 800; cursor: pointer; padding: 6px;
}
.mr-role-fields { display: grid; gap: 16px; margin-top: 16px; }
.mr-consents { display: grid; gap: 12px; margin-top: 20px; }
.mr-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.mr-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; }
.mr-check a { color: var(--mr-orange-dark); }

.mr-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.mr-button {
    border: 0; border-radius: 12px; padding: 13px 20px; font: inherit; font-weight: 800;
    cursor: pointer; min-height: 48px;
}
.mr-button-primary { background: var(--mr-orange); color: #fff; margin-left: auto; }
.mr-button-primary:hover { background: var(--mr-orange-dark); }
.mr-button-secondary { background: #eee; color: #222; }
.mr-button:disabled { opacity: .6; cursor: wait; }

.mr-field-error { color: #b42318; min-height: 1.2em; margin: 10px 0 0; font-size: .85rem; }
.mr-message { min-height: 24px; margin-top: 16px; font-weight: 700; }
.mr-message.is-success { color: #146c2e; }
.mr-message.is-error { color: #b42318; }
.mr-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; margin-left: 8px; vertical-align: -3px; animation: mr-spin .7s linear infinite; }
.mr-submit.is-loading .mr-spinner { display: inline-block; }
@keyframes mr-spin { to { transform: rotate(360deg); } }

.mr-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 620px) {
    #mr-registration { padding: 8px 0; }
    .mr-shell { border-radius: 18px; padding: 20px 16px; }
    .mr-grid { grid-template-columns: 1fr; }
    .mr-span-2 { grid-column: auto; }
    .mr-actions { position: sticky; bottom: 0; background: rgba(255,255,255,.96); padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .mr-waitlist-title, .mr-step.is-active, .mr-account-card { animation: none; transition: none; }
}

.mr-success {
    text-align: center;
    padding: clamp(18px, 5vw, 42px) 4px 10px;
    animation: mr-success-in .35s ease-out;
}
.mr-success[hidden] { display: none; }
.mr-success.is-visible { display: block !important; }
@keyframes mr-success-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.mr-success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 2rem;
    font-weight: 900;
    animation: mr-check-pop .45s .08s both ease-out;
}
@keyframes mr-check-pop {
    from { opacity: 0; transform: scale(.65); }
    70% { transform: scale(1.06); }
    to { opacity: 1; transform: scale(1); }
}
.mr-success-kicker {
    margin: 0 0 8px;
    color: var(--mr-orange-dark);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
}
.mr-success h2 {
    margin: 0 auto 10px;
    max-width: 620px;
    font-size: clamp(1.45rem, 4.5vw, 2.2rem);
    line-height: 1.18;
}
.mr-success-copy {
    margin: 4px 0;
    color: var(--mr-muted);
    font-size: clamp(.98rem, 2.8vw, 1.08rem);
}
.mr-position-card {
    margin: 26px auto 0;
    width: min(300px, 100%);
    padding: 18px 20px;
    border-radius: 20px;
    background: #111;
    color: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.13);
}
.mr-position-card span {
    display: block;
    opacity: .72;
    font-size: .86rem;
    font-weight: 700;
}
.mr-position-card strong {
    display: block;
    margin-top: 2px;
    color: #f97316;
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.04em;
}
.mr-registered { min-height: 420px; }
@media (prefers-reduced-motion: reduce) {
    .mr-success, .mr-success-check { animation: none; }
}


.mr-login-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--mr-border, #e5e7eb);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.mr-login-title {
    font-size: 1.55rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 7px;
}
.mr-login-subtitle {
    text-align: center;
    margin: 0 0 22px;
    color: var(--mr-muted, #6b7280);
}
.mr-login-form {
    display: grid;
    gap: 9px;
}
.mr-login-form label {
    font-weight: 700;
    margin-top: 5px;
}
.mr-login-form input[type="text"],
.mr-login-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--mr-border, #d1d5db);
    border-radius: 10px;
    background: #fff;
}
.mr-login-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    background: var(--mr-orange, #f97316);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.mr-login-lost {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: .92rem;
}
.mr-login-register {
    text-align: center;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--mr-border, #e5e7eb);
}
.mr-login-register a {
    font-weight: 800;
}
.mr-login-success {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--mr-border, #e5e7eb);
    text-align: center;
}
.mr-login-success strong,
.mr-login-success span {
    display: block;
}
.mr-login-success span {
    margin-top: 6px;
}
