:root {
  --ink: #0f3d46;
  --ink-2: #263d43;
  --muted: #64777c;
  --line: #dce7e8;
  --soft: #e6f3ef;
  --soft-2: #f6faf8;
  --brand: #0f3d46;
  --brand-2: #6dbfae;
  --accent: #dcc5a1;
  --danger: #ad3d3d;
  --danger-soft: #fff0f0;
  --success: #197b5f;
  --success-soft: #edf8f3;
  --warning: #856514;
  --warning-soft: #fff7df;
  --shadow: 0 22px 60px rgba(15, 61, 70, .10);
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f8f7;
  color: var(--ink-2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(109, 191, 174, .22);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

label small,
.field-help,
.form-note {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--brand);
}

.btn-light {
  background: var(--soft);
  color: var(--brand);
}

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

.pro-login {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(90deg, rgba(230, 243, 239, .95), rgba(255, 255, 255, .78) 44%, rgba(220, 197, 161, .18)),
    #f7faf9;
}

.pro-login-header {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 18px;
}

.pro-login-header img {
  width: 230px;
  height: auto;
}

.pro-login-site-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  background: #fff;
  color: var(--brand);
  font-weight: 850;
}

.pro-login-grid {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 455px);
  gap: 34px;
  align-items: center;
  padding: 34px 0 64px;
}

.choice-grid-wrap {
  align-items: stretch;
}

.choice-hero {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}

.choice-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--brand);
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 1.02;
}

.choice-hero > p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.account-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.account-choice-card {
  min-height: 270px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.account-choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 191, 174, .65);
  box-shadow: 0 24px 58px rgba(15, 61, 70, .12);
}

.account-choice-card.professional {
  background: linear-gradient(145deg, var(--brand), #145762);
  color: #fff;
}

.account-choice-card strong {
  color: inherit;
  font-size: 1.7rem;
  line-height: 1.12;
}

.account-choice-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.account-choice-card.professional p {
  color: rgba(255, 255, 255, .78);
}

.account-choice-card em {
  align-self: end;
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--soft);
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
}

.account-choice-card.professional em {
  background: #fff;
  color: var(--brand);
}

.choice-icon {
  width: 58px;
  height: 58px;
  display: inline-block;
  position: relative;
  border-radius: 18px;
  background: var(--soft);
  color: var(--brand);
}

.professional .choice-icon {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.choice-user::before,
.choice-user::after,
.choice-briefcase::before,
.choice-briefcase::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}

.choice-user::before {
  width: 16px;
  height: 16px;
  top: 13px;
  left: 20px;
  border-radius: 50%;
}

.choice-user::after {
  width: 28px;
  height: 15px;
  left: 14px;
  bottom: 13px;
  border-radius: 16px 16px 8px 8px;
}

.choice-briefcase::before {
  width: 30px;
  height: 22px;
  left: 14px;
  bottom: 14px;
  border-radius: 6px;
}

.choice-briefcase::after {
  width: 16px;
  height: 8px;
  left: 21px;
  top: 14px;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.pro-login-copy {
  display: grid;
  gap: 24px;
  align-content: center;
}

.pro-login-copy span,
.eyebrow,
.topbar-eyebrow {
  color: #4a9f8f;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pro-login-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--brand);
  font-size: clamp(2.45rem, 4.6vw, 5.15rem);
  line-height: 1.02;
}

.pro-login-copy p {
  max-width: 650px;
  margin: 0;
  color: #526b70;
  font-size: 1.14rem;
}

.pro-login-value {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.pro-login-value article {
  min-height: 152px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(109, 191, 174, .35);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 32px rgba(15, 61, 70, .06);
}

.pro-login-value strong {
  color: var(--brand);
  font-size: 1.02rem;
}

.pro-login-value span {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.pro-login-preview {
  max-width: 630px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(220, 197, 161, .44);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.preview-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(15, 61, 70, .12), rgba(109, 191, 174, .36)),
    #eff8f5;
  border: 4px solid #fff;
  box-shadow: 0 10px 26px rgba(15, 61, 70, .16);
}

.preview-lines {
  display: grid;
  gap: 10px;
}

.preview-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #dfe9e9;
}

.preview-lines span:first-child {
  width: 66%;
  height: 18px;
  background: var(--brand);
}

.preview-lines span:nth-child(2) {
  width: 82%;
}

.preview-lines span:nth-child(3) {
  width: 52%;
}

.preview-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-actions span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--soft);
  color: var(--brand);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.pro-access-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.compact-access {
  align-self: center;
}

.login-form {
  display: grid;
  gap: 16px;
}

.pro-form {
  padding: 18px 10px 6px;
}

.login-form h2 {
  margin: 4px 0 2px;
  color: var(--brand);
  font-size: 2.1rem;
  line-height: 1.08;
}

.login-form p {
  margin: 0;
  color: var(--muted);
}

.form-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: .94rem;
}

.form-inline a {
  color: var(--brand);
  font-weight: 850;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.remember-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

.signup-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--soft), #fff);
  border: 1px solid rgba(109, 191, 174, .35);
}

.signup-box strong {
  color: var(--brand);
  font-size: 1.08rem;
}

.signup-box p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 22px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand img {
  width: 208px;
  height: auto;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink-2);
  font-weight: 800;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--soft);
  color: var(--brand);
}

.icon {
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 7px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.icon-user {
  border-radius: 50% 50% 8px 8px;
}

.icon-pin {
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
}

.icon-school::after,
.icon-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 2px solid currentColor;
}

.sidebar-card {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--soft-2);
  border: 1px solid var(--line);
}

.sidebar-card span,
.sidebar-card small {
  color: var(--muted);
  font-size: .88rem;
}

.sidebar-card strong {
  color: var(--brand);
  word-break: break-word;
}

.logout-link {
  display: block;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 14px;
}

.main-area {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 18px 34px;
  background: rgba(245, 248, 247, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar > div {
  display: grid;
  gap: 2px;
}

.topbar strong {
  color: var(--brand);
  font-size: 1.05rem;
}

.topbar-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  color: var(--brand);
  font-weight: 850;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand);
}

.profile-workspace {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
}

.page-hero > div:first-child,
.status-card,
.panel,
.preview-card,
.alert,
.page-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 61, 70, .06);
}

.page-hero > div:first-child {
  padding: 32px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 10px 0 12px;
  color: var(--brand);
  font-size: clamp(2rem, 3vw, 3.7rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.status-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.status-card span,
.status-card small {
  color: var(--muted);
  font-weight: 700;
}

.status-card strong {
  color: var(--brand);
  font-size: 3rem;
  line-height: 1;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeee;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.form-column {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.panel {
  padding: 28px;
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  color: var(--brand);
  font-size: 1.55rem;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.identity-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.photo-control {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.photo-control img,
.preview-card img {
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  border: 4px solid #fff;
  box-shadow: 0 10px 26px rgba(15, 61, 70, .14);
}

.form-fields {
  display: grid;
  gap: 18px;
}

.form-fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-two {
  grid-column: 1 / -1;
}

.legacy-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 700;
}

.multi-select {
  min-height: 250px;
}

.toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.toggle-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 120px;
  padding: 18px 18px 18px 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-2);
}

.toggle-card input {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 20px;
  min-height: 20px;
  accent-color: var(--brand);
}

.toggle-card span {
  color: var(--brand);
  font-size: 1.08rem;
  font-weight: 900;
}

.location-branch,
.location-custom {
  margin: 18px 0;
}

.repeat-row {
  position: relative;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft-2);
}

.row-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.preview-column {
  position: sticky;
  top: 102px;
}

.preview-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.preview-card img {
  width: 96px;
  height: 96px;
}

.preview-card h2 {
  margin: 0;
  color: var(--brand);
  font-size: 1.45rem;
  line-height: 1.15;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-meta span:not(:empty),
.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--soft);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 900;
}

.status-pill.publicado {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.borrador {
  background: var(--warning-soft);
  color: var(--warning);
}

.alert {
  margin-bottom: 16px;
  padding: 16px 18px;
  font-weight: 800;
}

.alert.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.alert.success {
  background: var(--success-soft);
  color: var(--success);
}

.alert.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.page-panel {
  width: min(760px, calc(100% - 48px));
  margin: 70px auto;
  padding: 36px;
}

.page-panel h1 {
  margin: 8px 0;
  color: var(--brand);
  font-size: 2.6rem;
}

@media (max-width: 1180px) {
  .pro-login-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  }

  .pro-login-value {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .preview-column {
    position: static;
  }

  .preview-card {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
  }

  .preview-card .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .pro-login-header {
    width: min(100% - 32px, 720px);
    padding-top: 20px;
  }

  .pro-login-grid {
    width: min(100% - 32px, 720px);
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding: 20px 0 42px;
  }

  .pro-login-copy h1 {
    font-size: 2.55rem;
  }

  .pro-login-copy p {
    font-size: 1.03rem;
  }

  .choice-hero {
    padding: 30px;
  }

  .choice-hero h1 {
    font-size: 3rem;
  }

  .pro-login-value {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .pro-login-value article {
    min-height: auto;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: min(330px, 86vw);
    transform: translateX(-110%);
    transition: transform .2s ease;
    box-shadow: var(--shadow);
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  .topbar {
    padding: 14px 18px;
  }

  .topbar-link {
    display: none;
  }

  .profile-workspace {
    width: min(100% - 28px, 720px);
    padding-top: 18px;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .identity-row,
  .form-fields.two,
  .toggle-row {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .panel,
  .page-hero > div:first-child {
    padding: 22px;
  }

  .row-between {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .pro-login-header {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 28px, 430px);
    padding: 18px 0 10px;
  }

  .pro-login-header img {
    width: 205px;
  }

  .pro-login-site-link {
    min-height: 40px;
    padding: 8px 14px;
  }

  .pro-login-grid {
    width: min(100% - 28px, 430px);
    padding-bottom: 28px;
  }

  .pro-login-copy {
    gap: 18px;
  }

  .pro-login-copy h1 {
    font-size: 2.25rem;
  }

  .choice-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .choice-hero h1 {
    font-size: 2.2rem;
  }

  .choice-hero > p {
    font-size: 1rem;
  }

  .account-choice-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-choice-card {
    min-height: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .account-choice-card strong {
    font-size: 1.45rem;
  }

  .pro-login-preview {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .preview-avatar {
    width: 68px;
    height: 68px;
  }

  .pro-access-card {
    padding: 14px;
    border-radius: 24px;
  }

  .pro-form {
    padding: 10px 4px 2px;
  }

  .form-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-form h2 {
    font-size: 1.85rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .preview-card {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
