/* Account entry: light silver medical-academy setting, shared by all three steps. */
.inside-flow .flow {
  color-scheme: light;
  color: #142c3b;
  background-color: #e2ebf0;
  background-image: url('./assets/auth/auth-academy-desktop-v3.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
.inside-flow .flow::before { content: none; }
body.inside-flow .noise { display: none; }
.inside-flow .flow-topbar {
  border: 1px solid #9daeba9c;
  border-radius: 14px;
  background: #f7fafbc9;
  box-shadow: 0 12px 34px #415b6a26, inset 0 1px #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.inside-flow .flow-topbar .brand-mark { filter: drop-shadow(0 2px 5px #3b6f8760); }
.inside-flow .flow-topbar .brand-descriptor { color: #3d5867; opacity: 1; }
.inside-flow .flow-topbar .topbar-link,
.inside-flow .flow-topbar .lang-switch {
  min-height: 39px;
  border: 1px solid #a9bbc7;
  border-radius: 9px;
  background: #f4f8f9b8;
  box-shadow: inset 0 1px #fff9;
  color: #183647;
  font: 500 13px/1.2 Alexandria, Inter, sans-serif;
}
.inside-flow .flow-topbar .topbar-link:hover,
.inside-flow .flow-topbar .lang-switch:hover { border-color: #5b8fa6; background: #edf7f9; color: #0f526b; }
.inside-flow .flow-topbar .landing-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 104px;
  padding-inline: 11px;
}
.inside-flow .flow-topbar .language-current { color: #163b4f; }
.inside-flow .flow-topbar .language-next { color: #286b84; font-weight: 600; }
.inside-flow .flow-topbar .language-separator { width: 1px; height: 15px; background: #8ca9b9; }
.inside-flow .flow-top-status { color: #2d5265; }
.inside-flow .flow-status-bars i { background: #b2c4cd; }
.inside-flow .flow-status-bars i.filled { background: #3689a2; }

.inside-flow .steps {
  width: min(680px, calc(100% - 42px));
  margin-block: 17px 8px;
  padding: 12px 18px 10px;
  border: 1px solid #a9bcc8ab;
  border-radius: 13px;
  background: #f7fafbc9;
  box-shadow: 0 12px 32px #405d6c24;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.inside-flow .steps-track { background: #9fb4bf6b; }
.inside-flow .steps-fill { background: #357d96; box-shadow: none; }
.inside-flow .steps .step b {
  border-color: #7f9dab;
  border-radius: 8px;
  background: #f0f6f8;
  color: #39596b;
  box-shadow: none;
}
.inside-flow .steps .step.active b,
.inside-flow .steps .step.done b {
  border-color: #337e97;
  background: #d2e9ef;
  color: #17566f;
  box-shadow: 0 0 0 3px #3d96ac21;
}
.inside-flow .steps .step small,
.inside-flow .steps .step-state { color: #557080; font-weight: 500; }
.inside-flow .steps .step.active small { color: #173f52; }
.inside-flow .steps .step.done small { color: #2b6479; }
.inside-flow .steps .step.active .step-state { color: #195b72; }
.inside-flow .steps .step.done .step-state { color: #27745f; }

.inside-flow .flow-wrap > .flow-head { max-width: 780px; margin-bottom: 19px; }
.inside-flow .flow-head .flow-kicker,
.inside-flow .account-assurance .flow-kicker {
  color: #2f657e;
  font: 500 12px/1.6 Alexandria, Inter, sans-serif;
  letter-spacing: 0;
}
.inside-flow .flow-head .flow-kicker {
  color: #194b62;
  font-weight: 600;
  text-shadow: 0 1px 5px #ffffffeb;
}
.inside-flow .flow-head h1,
[dir="rtl"] .inside-flow .flow-head h1 {
  color: #123247;
  font: 600 clamp(29px, 2.5vw, 38px)/1.5 Alexandria, Inter, sans-serif;
  letter-spacing: 0;
  text-shadow: 0 1px 0 #fff9;
}
.inside-flow .flow-head p { color: #21475d; font-size: 14px; line-height: 1.8; text-shadow: 0 1px 5px #fffffff0; }
.inside-flow .flow-wrap > .account-step-layout,
.inside-flow .flow-wrap > .selection-layout,
.inside-flow .flow-wrap > .profile-layout,
.inside-flow .flow-wrap > .actionbar { width: min(1190px, calc(100% - 48px)); }
.inside-flow .account-step-layout { grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr); gap: 16px; }
.inside-flow .panel {
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid #99aebaaf;
  border-radius: 15px;
  background: #f6fafbca;
  box-shadow: 0 20px 48px #2b53652a, inset 0 1px #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #173547;
}
.inside-flow .panel::before { content: none; }
.inside-flow .panel h3 {
  margin-bottom: 15px;
  color: #183a4d;
  font: 600 19px/1.5 Alexandria, Inter, sans-serif;
}
.inside-flow .panel h3::before { content: none; }
.inside-flow .account-step-heading { align-items: center; padding-bottom: 17px; margin-bottom: 17px; border-color: #9db2bf85; }
.inside-flow .account-step-heading h3 { margin: 0 0 3px; }
.inside-flow .account-step-heading p { color: #4a6777; font-size: 13px; line-height: 1.7; }
.inside-flow .account-step-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 1px solid #8caeba;
  border-radius: 9px;
  background: #dbeaf0;
  box-shadow: none;
  color: #215870;
  font-weight: 500;
}
.inside-flow .field label,
.inside-flow .university-select label { color: #24495e; font-size: 13px; font-weight: 600; }
.inside-flow .field input,
.inside-flow .field textarea,
.inside-flow .search,
.inside-flow .university-select select {
  min-height: 48px;
  border: 1px solid #9ab3c0;
  border-radius: 9px;
  background: #fffefdca;
  box-shadow: inset 0 1px 3px #37596b0c;
  color: #102f40;
  font: 400 14px/1.5 Alexandria, Inter, sans-serif;
}
.inside-flow .field input::placeholder,
.inside-flow .field textarea::placeholder,
.inside-flow .search::placeholder { color: #668091; opacity: 1; }
.inside-flow .field input:focus,
.inside-flow .field textarea:focus,
.inside-flow .search:focus,
.inside-flow .university-select select:focus {
  border-color: #377c96;
  box-shadow: 0 0 0 3px #4a9dbc2e;
}
.inside-flow .account-password-grid { gap: 14px; }
.inside-flow .terms-row { color: #35566a; font-size: 13px; }
.inside-flow .terms-row input { accent-color: #27728c; }
.inside-flow .account-assurance { background: #f6fafbc5; }
.inside-flow .account-assurance h3 { max-width: 24ch; margin-bottom: 14px; font-size: 20px; }
.inside-flow .account-assurance li { padding-block: 16px; border-color: #a8bac587; }
.inside-flow .account-assurance li > b { color: #236985; font-weight: 600; }
.inside-flow .account-assurance li span { color: #476777; font-size: 13px; line-height: 1.7; }
.inside-flow .account-assurance li strong { color: #183b50; font-weight: 600; }
.inside-flow .provider-confirmation { border-color: #83b4a1; background: #e8f5ee; color: #254c3d; }
.inside-flow .provider-confirmation small { color: #4b6d5d; }
.inside-flow .account-step-error { border-color: #d28b8b; background: #fff4f2; color: #8d3030; }
.inside-flow .option-card,
.inside-flow .stage {
  border-color: #9cb5c1;
  border-radius: 10px;
  background: #f8fcfcd6;
  color: #24495c;
  box-shadow: none;
}
.inside-flow .option-card:hover,
.inside-flow .stage:hover { border-color: #4d90a6; background: #e7f3f6; }
.inside-flow .option-card.selected,
.inside-flow .stage.selected { border-color: #337e97; background: #dceef3; color: #12384b; box-shadow: inset 0 1px #fff; }
.inside-flow .option-card .check { background: #2b7e97; color: white; }
.inside-flow .summary-note { border-color: #a6bfca; background: #e9f3f6da; color: #28566d; }
.inside-flow .university-select { border-color: #aec4cd; }
.inside-flow .university-select small { color: #516f7f; }
.inside-flow .university-select option { background: #f4fafc; color: #193a4a; }
.inside-flow .profile-layout .preview-card { border-color: #a5bdc8; background: #f2f8f8ca; }
.inside-flow .preview-meta { color: #4c6879; }
.inside-flow .preview-meta strong { color: #183b4f; }
.inside-flow .valid { color: #23614d; }
.inside-flow .counter { color: #536f7f; }
.inside-flow .rank-pill { border-color: #7db2c3; color: #24637b; }

.inside-flow .actionbar {
  border: 1px solid #9cafbbab;
  border-radius: 13px;
  background: #f8fbfbe2;
  box-shadow: 0 14px 35px #2f586b2b, inset 0 1px #fff;
  backdrop-filter: blur(13px);
}
.inside-flow .actionbar .summary,
.inside-flow .actionbar strong { color: #35596c; font-size: 13px; }
.inside-flow .actionbar .actions button {
  min-height: 46px;
  border-radius: 9px;
  font: 600 13px/1.3 Alexandria, Inter, sans-serif;
}
.inside-flow .primary-btn {
  border: 1px solid #658fa3;
  border-radius: 9px;
  background: linear-gradient(115deg, #b8d0da, #d7e5ea 49%, #a9c4d0);
  box-shadow: 0 5px 15px #42697b33, inset 0 1px #fff;
  color: #123547;
  font-weight: 600;
}
.inside-flow .primary-btn:hover { border-color: #367b96; box-shadow: 0 7px 19px #4b8fa855; }
.inside-flow .primary-btn .arrow { width: 23px; height: 23px; background: #316c84; color: white; }
.inside-flow .ghost-btn { border-color: #9fb5c0; border-radius: 9px; color: #26485b; background: #f7fbfbd1; }
.inside-flow .ghost-btn:hover { border-color: #367b96; box-shadow: none; }

/* Sign-in and account-choice dialogs use the same silver palette and backdrop. */
.account-dialog::backdrop {
  background-color: #e4edf0;
  background-image: url('./assets/auth/auth-academy-desktop-v3.webp');
  background-position: center;
  background-size: cover;
  backdrop-filter: none;
}
.account-dialog-card,
.login-dialog-card {
  border: 1px solid #8fa8b5;
  border-radius: 16px;
  background: #f5fafae8;
  box-shadow: 0 24px 65px #2d526448, inset 0 1px #fff;
  backdrop-filter: blur(16px);
  color: #17384a;
}
.account-dialog-card::before { content: none; }
.account-dialog h2 { color: #15384c; font-weight: 600; }
.account-dialog h2 + p,
.account-dialog-card > p { color: #456779; }
.account-dialog-kicker { color: #296781; letter-spacing: 0; font-family: Alexandria, Inter, sans-serif; }
.account-dialog .brand[data-brand="batalyos"] .brand-descriptor { color: #4d6676; opacity: 1; }
.account-dialog .account-email-field > span { color: #24485c; font-weight: 600; }
.account-dialog .account-email-field input {
  border: 1px solid #9fb7c3;
  border-radius: 9px;
  background: #fffefee0;
  color: #12384c;
}
.account-dialog .account-email-field input:focus { border-color: #337e97; box-shadow: 0 0 0 3px #4a9dbc2e; }
.account-dialog .account-email-field input::placeholder { color: #728a96; }
.account-dialog .primary-btn { border-radius: 9px; background: linear-gradient(110deg, #bdd5de, #e1ebee); color: #123547; box-shadow: none; }
.account-dialog .login-google-button,
.account-dialog .known-account { border-color: #a9bdc7; border-radius: 9px; background: #f7fbfbe0; color: #24475a; }
.account-dialog .known-account small { color: #5e7888; }
.account-dialog .account-divider,
.account-dialog .login-dialog-meta,
.account-dialog .login-dialog-register { color: #496879 !important; }
.account-dialog .dialog-close { border-color: #a6b9c3; background: #f6fafbe3; color: #264b5d; }
.account-dialog .link { color: #1c637f; }
.account-dialog .account-privacy { color: #5e7989; }
.account-dialog .auth-dialog-banner {
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid #8eb6c7;
  border-radius: 9px;
  background: #e6f3f7;
  color: #18485e;
  font-size: 13px;
  line-height: 1.65;
}
.account-dialog .auth-dialog-banner.tone-warning {
  border-color: #cfa96e;
  background: #fdf5e6;
  color: #6c4a14;
}
.account-dialog .auth-dialog-stack {
  display: grid;
  gap: 12px;
  margin-block: 10px 6px;
}
.account-dialog .account-dialog-status {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #83b4a1;
  border-radius: 9px;
  background: #e8f5ee;
  color: #214d3d;
  font-size: 13px;
  line-height: 1.6;
}
.account-dialog .login-totp-wrap {
  margin-top: 4px;
  padding: 8px 11px;
  border: 1px dashed #9ab3c0;
  border-radius: 9px;
  background: #f4f9fb99;
}
.account-dialog .login-totp-wrap > summary {
  cursor: pointer;
  color: #2c5b71;
  font-size: 12px;
  font-weight: 600;
  user-select: none;
}
.account-dialog .login-totp-wrap[open] > summary {
  margin-bottom: 8px;
}
button[aria-busy="true"] {
  opacity: 0.76;
  cursor: progress;
}

@media (max-width: 760px) {
  .inside-flow .flow {
    background-image: url('./assets/auth/auth-academy-mobile-v3.webp');
    background-position: center top;
    background-size: cover;
  }
  .inside-flow .flow-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 11px;
  }
  .inside-flow .flow-top-status { display: none; }
  .inside-flow .flow-topbar .brand { min-width: 0; gap: 6px; }
  .inside-flow .flow-topbar .brand-descriptor { display: none; }
  .inside-flow .flow-topbar .brand-wordmark-svg { max-width: 95px; }
  .inside-flow .flow-topbar .top-actions { margin-inline-start: 0; gap: 6px; }
  .inside-flow .flow-topbar .landing-lang-switch { min-width: 43px; width: 43px; padding-inline: 5px; }
  .inside-flow .flow-topbar .language-current,
  .inside-flow .flow-topbar .language-separator { display: none; }
  .inside-flow .flow-topbar .topbar-link { padding-inline: 9px; font-size: 11px; }
  .inside-flow .steps { width: calc(100% - 20px); margin-block: 9px 5px; padding: 10px 6px; border-radius: 11px; }
  .inside-flow .steps .step { min-width: 0; }
  .inside-flow .steps .step small { font-size: 11px; }
  .inside-flow .flow-wrap > .flow-head,
  .inside-flow .flow-wrap > .account-step-layout,
  .inside-flow .flow-wrap > .selection-layout,
  .inside-flow .flow-wrap > .profile-layout,
  .inside-flow .flow-wrap > .actionbar { width: calc(100% - 24px); }
  .inside-flow .flow-head h1,
  [dir="rtl"] .inside-flow .flow-head h1 { font-size: 27px; line-height: 1.45; }
  .inside-flow .flow-head p { font-size: 13px; }
  .inside-flow .account-step-layout { grid-template-columns: minmax(0, 1fr); }
  .inside-flow .panel { padding: 18px; border-radius: 12px; }
  .inside-flow .account-password-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .inside-flow .account-assurance h3 { max-width: none; }
  .inside-flow .actionbar { bottom: 8px; padding: 11px; }
  .account-dialog::backdrop {
    background-image: url('./assets/auth/auth-academy-mobile-v3.webp');
    background-position: center;
  }
  .account-dialog-card { border-radius: 13px; }
}
@media (max-width: 390px) {
  .inside-flow .steps .step small { font-size: 10px; }
  .inside-flow .panel { padding: 16px; }
  .inside-flow .account-step-heading { gap: 10px; }
  .inside-flow .actionbar .actions button { min-width: 0; }
}
