/* ==========================================================================
   COMMON (shared utilities + registration-wide base)
   This file intentionally contains only styles shared across pages,
   especially everything under the REGISTRATION "base" section.
   ========================================================================== */

/* ---- Utility: screen-reader-only ---- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   REGISTRATION: flatten Moodle/Boost wrappers (both steps)
   ========================================================================== */
#page-auth-becasauth-register-step1 #page,
#page-auth-becasauth-register-step1 #page-content,
#page-auth-becasauth-register-step1 #region-main-box,
#page-auth-becasauth-register-step1 #region-main,
#page-auth-becasauth-register-step2 #page,
#page-auth-becasauth-register-step2 #page-content,
#page-auth-becasauth-register-step2 #region-main-box,
#page-auth-becasauth-register-step2 #region-main {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#page-auth-becasauth-register-step1 .container-fluid,
#page-auth-becasauth-register-step2 .container-fluid,
#page-auth-becasauth-register-step1 .row,
#page-auth-becasauth-register-step2 .row {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#page-auth-becasauth-register-step1 .login-container,
#page-auth-becasauth-register-step2 .login-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#page-auth-becasauth-register-step1 .login-wrapper,
#page-auth-becasauth-register-step2 .login-wrapper {
  align-items: center;
  min-height: 100vh;
}

/* ---- Registration design tokens and base ---- */
.becas-register {
  --brand-blue-500: #03B4FA;
  --brand-blue-600: #069ED9;
  --brand-blue-solid: #04A7E7;
  --cta-red-600: #C1453A;
  --cta-red-700: #B33E34;
  --text-strong: #1F2937;
  --text-default: #374151;
  --text-muted: #6B7280;
  --text-on-blue: #FFFFFF;
  --surface: #FFFFFF;
  --page-bg: #F9FAFB;
  --border: #DCDCDC;
  --border-strong: #9CA3AF;
  --focus-ring: rgba(3, 180, 250, .25);
  --radius-xl: 28px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 60px rgba(0,0,0,0.12);
  --shadow-focus: 0 0 0 4px var(--focus-ring);
  --input-bg: #EAEAEA;
}

.becas-register .page--register {
  background:
    radial-gradient(1200px 600px at 25% 20%, rgba(0,0,0,.06), transparent 60%),
    linear-gradient(180deg, #FCFCFC 0%, #F0F0F0 100%);
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  display: flex;
  align-items: center;
}

/* ---- Outer container ---- */
.becas-register .register-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px;
}
@media (max-width: 640px) {
  .becas-register .register-container { padding: 24px 16px; }
}
.becas-register .register-container--2col {
  display: grid;
  grid-template-columns: min(46vw, 902px) 560px;
  column-gap: 64px;
  align-items: center;
}
@media (min-width: 1280px) {
  .becas-register .register-container--2col {
    grid-template-columns: 560px 560px;
    column-gap: 64px;
    justify-content: center;
  }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .becas-register .register-container--2col { grid-template-columns: 1fr 560px; column-gap: 48px; }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .becas-register .register-container--2col { grid-template-columns: 1fr 520px; column-gap: 48px; }
}
@media (max-width: 1023.98px) {
  .becas-register .register-container--2col { grid-template-columns: 1fr; row-gap: 40px; }
}

/* ---- Hero (left) ---- */
.becas-register .hero-card {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--brand-blue-500), var(--brand-blue-600));
  color: var(--text-on-blue);
  box-shadow: var(--shadow-card);
  padding: 40px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}
.becas-register .hero-card__logo {
  height: 68px;
  margin: 0 auto 16px auto;
}
.becas-register .hero-card__title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 300;
  color: #fff;
  margin: 8px 0 12px 0;
  font-size: 2.25rem;
}
@media (max-width: 640px) {
  .becas-register .hero-card__logo { height: 48px; margin-bottom: 12px; }
  .becas-register .hero-card__title { font-size: 1.25rem; }
}
.becas-register .hero-card__collage {
  width: 100%;
  aspect-ratio: 5/4;
  border-radius: 14px;
  display: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto auto;
}
@media (max-width: 1023.98px) {
  .becas-register .hero-card { padding: 16px 16px 12px 16px; }
  .becas-register .hero-card,
  .becas-register .form-area {
    max-width: 560px;
    margin-left: auto; margin-right: auto;
    box-sizing: border-box;
  }
}
@media (min-width: 1024px) {
  .becas-register .hero-card__collage { display: block; background-image: var(--collage-url); }
}

/* ---- Form (right) ---- */
.becas-register .form-area { width: 100%; max-width: 560px; }
.becas-register .form-area__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
  text-align: center;
  margin: 0 20% 8px 20%;
}
@media (max-width: 640px) {
  .becas-register .form-area__title { margin: 0 10% 8px 10%; }
}
.becas-register .form-area__subtitle {
  font-size: 0.8rem;
  color: var(--text-default);
  text-align: center;
  margin: 0 10% 40px 10%;
}
@media (min-width: 1024px) {
  .becas-register .form-area { padding-right: 10%; }
  .becas-register .form-area__title { font-size: 1.1rem; }
  .becas-register .form-area__subtitle { font-size: 1rem; }
}
.becas-register .form-area__globalerror { margin-bottom: 16px; }

/* ---- Designer dropdown (used in step 1 and step 2) ---- */
.becas-register .becas-select { position: relative; width: 100%; }
.becas-register .becas-select > select {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.becas-register .becas-select__button {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--input-bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  color: var(--text-strong);
  font-size: 0.8rem;
}
.becas-register .becas-select__button:focus {
  outline: none; border-color: var(--brand-blue-500); box-shadow: var(--shadow-focus);
}
.becas-register .becas-select__chevron {
  width: 10px; height: 10px; margin-left: 8px; flex: 0 0 auto;
  display: inline-block;
  border-right: 2px solid #8A8A8A; border-bottom: 2px solid #8A8A8A;
  transform: rotate(45deg); transition: transform .12s ease;
}
.becas-register .becas-select.is-open .becas-select__chevron { transform: rotate(-135deg); }
.becas-register .becas-select.is-disabled .becas-select__button {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}
.becas-register .becas-select__menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  max-height: 280px; overflow: auto; z-index: 1000; padding: 6px 0;
}
.becas-register .becas-select__option {
  padding: 12px 16px; line-height: 1.25; color: #4B5563; cursor: pointer; background: #fff;
}
.becas-register .becas-select__option + .becas-select__option { border-top: 1px solid #EAEAEA; }
.becas-register .becas-select__option.is-active { background: #F3F4F6; }
.becas-register .becas-select__option[aria-selected="true"] { color: #111827; font-weight: 600; }
.becas-register .becas-select__option[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (min-width: 1024px) {
  .becas-register .becas-select__button,
  .becas-register .becas-select__option { font-size: 0.9rem; }
}

/* ---- Remove footer junk (both steps) ---- */
#page-auth-becasauth-register-step1 .btn-footer-popover,
#page-auth-becasauth-register-step2 .btn-footer-popover { display: none !important; }
#page-auth-becasauth-register-step1 #page-footer,
#page-auth-becasauth-register-step2 #page-footer,
#page-auth-becasauth-register-step1 .footer-popover,
#page-auth-becasauth-register-step2 .footer-popover,
#page-auth-becasauth-register-step1 .logininfo,
#page-auth-becasauth-register-step2 .logininfo,
#page-auth-becasauth-register-step1 .footerinfo,
#page-auth-becasauth-register-step2 .footerinfo,
#page-auth-becasauth-register-step1 .sitelink,
#page-auth-becasauth-register-step2 .sitelink,
#page-auth-becasauth-register-step1 .homelink,
#page-auth-becasauth-register-step2 .homelink,
#page-auth-becasauth-register-step1 .tool_mobile_app,
#page-auth-becasauth-register-step2 .tool_mobile_app,
#page-auth-becasauth-register-step1 .helplink,
#page-auth-becasauth-register-step2 .helplink {
  display: none !important;
}

/* ---- Motion safety for registration ---- */
@media (prefers-reduced-motion: reduce) {
  .becas-register * { transition: none !important; animation: none !important; }
}
