/* Registration layout: keep spacing local to this page. */
html:has(body.register-page) {
    display: block;
    height: auto;
    min-height: 100%;
}

body.register-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
}

.register-page .main-wrapper {
    width: 100%;
    max-width: 1120px;
    height: auto;
    min-height: 720px;
    margin: auto;
}

.register-page .left-panel {
    flex: 0 0 35%;
    min-width: 0;
    padding: 32px 24px;
}

.register-page .left-panel img {
    width: 100%;
    max-width: 340px;
}

.register-page .right-panel {
    min-width: 0;
    padding: 40px;
    overflow: visible;
}

.register-page .progress-container { margin-bottom: 24px; }
.register-page .form-header p { margin-bottom: 22px; }

.register-page .step-section.active {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.register-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.register-page .form-group {
    min-width: 0;
    margin: 0;
}

/* Give all three business fields enough room for their labels and values. */
.register-page .company-contact-row .form-group:last-child {
    grid-column: 1 / -1;
}

.register-page .form-input,
.register-page .form-select {
    min-width: 0;
    min-height: 46px;
    font-family: inherit;
}

.register-page .form-label { line-height: 1.4; margin-bottom: 6px; }
.register-page .terminos_y_condiciones { margin: 2px 0 0; }
.register-page .terminos_y_condiciones label { align-items: flex-start; line-height: 1.5; }
.register-page .terminos_y_condiciones label:last-child { margin-bottom: 0; }
.register-page .terminos_y_condiciones input { flex: 0 0 auto; margin-top: 4px; }
.register-page .actions { margin: 0; align-items: stretch; }
.register-page .actions > button { flex: 1; min-width: 0; }
.register-page .footer-link { line-height: 1.5; margin-top: 22px; }
.register-page #access-validation-error:empty { display: none; }

@media (max-width: 1024px) {
    .register-page .left-panel { flex-basis: 30%; padding: 24px 16px; }
    .register-page .left-panel h2 { font-size: 24px; }
    .register-page .right-panel { padding: 32px; }
}

@media (max-width: 800px) {
    body.register-page { padding: 16px; }
    .register-page .main-wrapper { flex-direction: column; min-height: 0; max-width: 620px; }
    .register-page .left-panel { flex: none; width: 100%; padding: 18px 24px; border-radius: 15px 15px 0 0; }
    .register-page .left-panel img { width: 110px; }
    .register-page .left-panel h2 { font-size: 22px; margin-bottom: 4px; }
    .register-page .left-panel p { font-size: 13px; }
    .register-page .right-panel { width: 100%; padding: 28px; border-radius: 0 0 15px 15px; }
}

@media (max-width: 480px) {
    body.register-page { padding: 0; }
    .register-page .main-wrapper { border-radius: 0; box-shadow: none; }
    .register-page .left-panel { border-radius: 0; padding: 14px 20px; }
    .register-page .left-panel img { width: 90px; }
    .register-page .right-panel { padding: 24px 20px; border-radius: 0; }
    .register-page .form-header h2 { font-size: 23px; }
    .register-page .form-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .register-page .step-section.active { gap: 16px; }
    .register-page .form-input, .register-page .form-select { font-size: 16px; }
    .register-page .actions { flex-direction: column; gap: 10px; }
}
