
/* ==========================================
   ESKOLARIS - REGISTRATION PAGE
========================================== */

:root {
  --green-950: #052b20;
  --green-900: #073d2c;
  --green-800: #07583c;
  --green-700: #087a50;
  --green-600: #119b65;
  --green-500: #16a36b;
  --green-100: #ddf7e9;
  --green-50: #f0faf4;

  --text: #142b23;
  --muted: #718078;
  --border: #e1eae4;
  --background: #f8fbf9;
  --white: #fff;

  --radius: 12px;
  --transition: .3s cubic-bezier(.22,1,.36,1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

input,
select {
  min-width: 0;
}

.registration-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 43% 57%;
}

/* ==========================================
   BRAND PANEL
========================================== */

.brand-panel {
  background: linear-gradient(150deg, #052b20, #08603e);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 42px clamp(30px, 5vw, 85px);
  display: flex;
  align-items: stretch;
}

.brand-panel-content {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 45px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.065em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #19aa70;
  display: grid;
  place-items: center;
  font-size: 17px;
  transform: rotate(-5deg);
  transition: var(--transition);
}

.brand-logo:hover .logo-icon {
  transform: rotate(0deg) scale(1.08);
}

.brand-dot {
  color: #58e3a1;
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a5f1c6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.brand-message h1 {
  margin: 20px 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 3.3vw, 49px);
  line-height: 1.17;
  letter-spacing: -.055em;
  font-weight: 800;
}

.brand-message h1 span {
  color: #75e8aa;
}

.brand-message > p {
  color: #c4dfd1;
  font-size: 13px;
  line-height: 1.95;
  max-width: 390px;
}

.brand-benefits {
  display: grid;
  gap: 17px;
  margin-top: 30px;
}

.brand-benefits > div {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #e6fff0;
  font-size: 11.5px;
  font-weight: 600;
}

.benefit-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  border-radius: 10px;
  color: #8bf0b8;
}

.brand-photo {
  position: relative;
  height: 205px;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.brand-photo:hover img {
  transform: scale(1.07);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0,30,19,.78),
    transparent 70%
  );
}

.photo-caption {
  position: absolute;
  left: 19px;
  bottom: 17px;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.photo-caption i {
  color: #76e9a9;
  margin-right: 6px;
}

.brand-circle {
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}

.circle-one {
  width: 420px;
  height: 420px;
  right: -260px;
  top: -200px;
}

.circle-two {
  width: 340px;
  height: 340px;
  left: -240px;
  bottom: -170px;
}

/* ==========================================
   FORM PANEL
========================================== */

.form-panel {
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 35px 45px;
}

.form-container {
  width: 100%;
  max-width: 520px;
}

.top-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 43px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--green-700);
  transform: translateX(-3px);
}

.secure-label {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-heading {
  margin-bottom: 30px;
  animation: slideUp .6s ease both;
}

.form-eyebrow {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.form-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.05em;
  line-height: 1.25;
  margin: 10px 0;
}

.form-heading p {
  color: var(--muted);
  font-size: 12px;
}

/* ==========================================
   PROGRESS
========================================== */

.progress-container {
  display: flex;
  align-items: center;
  margin-bottom: 33px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9baaa0;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.progress-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf2ee;
  color: #84948a;
  font-size: 10px;
  transition: var(--transition);
}

.progress-step.active {
  color: var(--green-800);
}

.progress-step.active .progress-number {
  color: white;
  background: var(--green-700);
  box-shadow: 0 0 0 4px var(--green-100);
}

.progress-step.completed .progress-number {
  color: var(--green-700);
  background: var(--green-100);
}

.progress-line {
  height: 1px;
  background: var(--border);
  flex: 1;
  margin: 0 15px;
}

/* ==========================================
   FORM STEPS
========================================== */

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: slideUp .45s ease both;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 17px;
}

.form-section-title h3 {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.form-section-title p {
  font-size: 10.5px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-group > label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-group > label span {
  color: #dc5555;
}

.input-wrapper {
  position: relative;
}

.input-wrapper > i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #8ca198;
  font-size: 13px;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdfb;
  padding: 0 15px 0 43px;
  outline: none;
  color: var(--text);
  font-size: 11.5px;
  transition: var(--transition);
}

.input-wrapper input::placeholder {
  color: #9ca9a1;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: var(--green-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(22,163,107,.09);
}

.input-wrapper select {
  appearance: none;
  cursor: pointer;
  padding-right: 26px;
}

.input-wrapper:has(select)::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8ca198;
  pointer-events: none;
  font-size: 9px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* ==========================================
   SCHOOL TYPE CARDS
========================================== */

.school-type-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.school-option {
  position: relative;
  cursor: pointer;
}

.school-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.school-option-content {
  min-height: 112px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdfb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  transition: var(--transition);
}

.school-option-content > i {
  color: var(--green-700);
  font-size: 20px;
  margin-bottom: 3px;
}

.school-option-content strong {
  font-size: 11px;
}

.school-option-content small {
  font-size: 9px;
  color: var(--muted);
}

.school-option:hover .school-option-content {
  border-color: #9ed9b8;
  transform: translateY(-3px);
}

.school-option input:checked + .school-option-content {
  background: var(--green-50);
  border-color: var(--green-600);
  box-shadow: 0 0 0 2px rgba(22,163,107,.1);
}

.school-option input:focus-visible + .school-option-content {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
}

/* ==========================================
   PASSWORD
========================================== */

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #83988b;
  padding: 5px;
}

.input-wrapper:has(.password-toggle) input {
  padding-right: 47px;
}

.password-toggle:hover {
  color: var(--green-700);
}

.password-strength {
  margin-top: 10px;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.strength-bars span {
  height: 4px;
  border-radius: 10px;
  background: #e6ede8;
  transition: background .25s;
}

.strength-bars span.active {
  background: var(--strength-color, var(--green-600));
}

.password-strength small {
  font-size: 10px;
  color: var(--muted);
}

/* ==========================================
   AGREEMENT
========================================== */

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 24px 0;
  cursor: pointer;
}

.agreement input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-700);
  flex-shrink: 0;
  margin-top: 2px;
}

.agreement span {
  color: #68796e;
  font-size: 10.5px;
  line-height: 1.8;
}

/* ==========================================
   BUTTONS
========================================== */

.btn {
  min-height: 46px;
  border-radius: 10px;
  padding: 12px 19px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 800;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green-700);
  color: white;
  box-shadow: 0 7px 20px rgba(8,122,80,.15);
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(8,122,80,.2);
}

.btn-secondary {
  background: white;
  border-color: var(--border);
  color: var(--green-900);
}

.btn-secondary:hover {
  background: var(--green-50);
  border-color: #c3e4d1;
}

.btn-full {
  width: 100%;
  margin-top: 5px;
}

.form-buttons {
  display: flex;
  gap: 12px;
}

.form-buttons .btn-primary {
  flex: 1;
}

.form-message {
  border-radius: 10px;
  padding: 13px 15px;
  margin-bottom: 22px;
  font-size: 11.5px;
  line-height: 1.8;
}

.form-message[hidden] {
  display: none;
}

.form-message.error {
  color: #a42c2c;
  background: #fff0f0;
  border: 1px solid #f5caca;
}

.form-message.success {
  color: #07643d;
  background: #e9f9ee;
  border: 1px solid #b8e6c9;
}

.form-message.info {
  color: #365d77;
  background: #eff7ff;
  border: 1px solid #d4e7f7;
}

/* ==========================================
   FOOTER
========================================== */

.form-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.form-footer a {
  color: var(--green-700);
  font-weight: 800;
  margin-left: 4px;
}

.form-footer a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  color: #9ca9a1;
  font-size: 10px;
  margin-top: 35px;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {
  .registration-layout {
    grid-template-columns: 40% 60%;
  }

  .brand-panel {
    padding: 35px 30px;
  }

  .form-panel {
    padding: 35px 30px;
  }
}

@media (max-width: 850px) {
  .registration-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 25px 24px;
  }

  .brand-panel-content {
    max-width: none;
    gap: 15px;
  }

  .brand-message,
  .brand-photo {
    display: none;
  }

  .form-panel {
    padding: 28px 24px 55px;
  }

  .form-container {
    max-width: 580px;
  }

  .top-navigation {
    margin-bottom: 35px;
  }
}

@media (max-width: 500px) {
  .brand-panel {
    padding: 18px;
  }

  .brand-logo {
    font-size: 21px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .form-panel {
    padding: 23px 17px 45px;
  }

  .top-navigation {
    margin-bottom: 29px;
  }

  .form-heading h2 {
    font-size: 27px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .school-type-options {
    gap: 7px;
  }

  .school-option-content {
    min-height: 100px;
    padding: 8px 3px;
  }

  .school-option-content > i {
    font-size: 17px;
  }

  .school-option-content strong {
    font-size: 10px;
  }

  .school-option-content small {
    font-size: 8px;
    text-align: center;
  }

  .progress-step {
    font-size: 9px;
  }

  .progress-line {
    margin-inline: 8px;
  }

  .form-buttons {
    gap: 8px;
  }

  .form-buttons .btn {
    padding: 12px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
}



/* ==========================================
   ESKOLARIS - DOCUMENT UPLOAD
========================================== */

.verification-info {
  display: flex;
  gap: 12px;
  background: #f0faf4;
  border: 1px solid #d4efdf;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 26px;
}

.verification-info > i {
  color: #087a50;
  font-size: 17px;
  margin-top: 3px;
}

.verification-info strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.verification-info p {
  color: #708278;
  font-size: 10.5px;
  margin-top: 4px;
}

.upload-zone {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 235px;
  padding: 25px;
  border: 1.5px dashed #9bd9b5;
  background: #f8fcf9;
  border-radius: 15px;
  cursor: pointer;
  transition: .3s ease;
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: #087a50;
  background: #ecf9f1;
  transform: translateY(-2px);
}

.upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: #def5e8;
  display: grid;
  place-items: center;
  color: #087a50;
  font-size: 24px;
}

.upload-zone strong {
  font-size: 12px;
  font-weight: 800;
}

.upload-zone small {
  color: #819388;
  font-size: 10px;
}

.upload-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 9px;
  color: #087a50;
  background: white;
  border: 1px solid #d3eadc;
  font-size: 10.5px;
  font-weight: 800;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-input:focus-visible + .selected-file,
.upload-zone:has(+ .file-input:focus-visible) {
  outline: 3px solid #16a36b;
  outline-offset: 3px;
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 12px 14px;
  background: #e9f8ef;
  border: 1px solid #c9ebd6;
  border-radius: 10px;
  color: #087a50;
}

.selected-file[hidden] {
  display: none;
}

.selected-file > i {
  font-size: 19px;
}

.selected-file span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 10.5px;
  font-weight: 700;
}

.selected-file button {
  border: 0;
  background: transparent;
  color: #718f7d;
  padding: 5px;
}

.document-security {
  display: flex;
  gap: 10px;
  color: #75877b;
  font-size: 10.5px;
  line-height: 1.8;
  margin-bottom: 26px;
}

.document-security i {
  color: #087a50;
  margin-top: 4px;
}

@media (max-width: 500px) {
  .upload-zone {
    min-height: 205px;
    padding: 20px 14px;
  }

  .progress-step {
    font-size: 9px;
  }
}



/* ==========================================
   ESKOOLI — REGISTRATION RESPONSIVE DESIGN
   Desktop, Tablet & Mobile
========================================== */

[hidden] {
  display: none !important;
}

.registration-layout {
  width: 100%;
  min-height: 100vh;
  grid-template-columns:
    minmax(0, 43%) minmax(0, 57%);
}

.brand-panel {
  background:
    radial-gradient(
      circle at 100% 60%,
      rgba(17, 155, 101, .35),
      transparent 55%
    ),
    linear-gradient(145deg, #052b20, #07583c);
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  right: -260px;
  top: -190px;
  pointer-events: none;
}

.brand-panel-content {
  justify-content: flex-start;
  gap: clamp(55px, 10vh, 130px);
}

.brand-message h1 {
  font-size: clamp(30px, 3.3vw, 49px);
}

.brand-benefits {
  gap: 15px;
}

.brand-photo {
  display: none !important;
}

.form-panel {
  min-width: 0;
}

.form-container {
  max-width: 520px;
}

.input-wrapper input,
.input-wrapper select {
  min-height: 48px;
}

.btn {
  min-height: 48px;
}

.form-step {
  min-width: 0;
}

/* TABLETS */

@media (max-width: 1000px) {

  .registration-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 28px 35px;
  }

  .brand-panel-content {
    max-width: 720px;
    gap: 24px;
  }

  .brand-message {
    display: block;
  }

  .brand-message h1 {
    font-size: 31px;
    margin: 12px 0;
  }

  .brand-message > p {
    font-size: 12px;
    line-height: 1.7;
  }

  .brand-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 20px;
  }

  .brand-benefits > div {
    font-size: 10px;
  }

  .form-panel {
    padding: 40px 28px 60px;
  }

  .form-container {
    max-width: 560px;
  }

  .top-navigation {
    margin-bottom: 35px;
  }
}

/* MOBILE */

@media (max-width: 600px) {

  .registration-layout {
    display: block;
  }

  .brand-panel {
    padding: 20px;
  }

  .brand-panel-content {
    gap: 16px;
  }

  .brand-logo {
    font-size: 21px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .brand-message {
    display: block;
  }

  .brand-eyebrow {
    font-size: 9px;
    letter-spacing: .7px;
  }

  .brand-message h1 {
    font-size: clamp(23px, 6vw, 28px);
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 9px 0;
  }

  .brand-message > p {
    font-size: 10.5px;
    line-height: 1.6;
  }

  .brand-benefits {
    display: none;
  }

  .form-panel {
    padding: 25px 20px 45px;
  }

  .top-navigation {
    margin-bottom: 27px;
    gap: 10px;
  }

  .back-link,
  .secure-label {
    font-size: 10px;
  }

  .form-heading {
    margin-bottom: 25px;
  }

  .form-heading h2 {
    font-size: 27px;
  }

  .form-heading p {
    font-size: 11px;
  }

  .progress-container {
    margin-bottom: 28px;
  }

  .progress-step {
    gap: 6px;
    font-size: 9px;
  }

  .progress-number {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
  }

  .progress-line {
    margin: 0 7px;
    min-width: 5px;
  }

  .form-section-title {
    margin-bottom: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .school-type-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .school-option-content {
    min-height: 94px;
    padding: 10px 4px;
  }

  .school-option-content strong {
    font-size: 10px;
  }

  .school-option-content small {
    font-size: 9px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .input-wrapper input,
  .input-wrapper select {
    font-size: 12px;
    min-height: 49px;
  }

  .form-buttons {
    gap: 9px;
  }

  .form-buttons .btn {
    min-width: 0;
    padding: 12px 10px;
  }

  .form-buttons .btn-secondary {
    flex: 0 0 auto;
  }

  .form-buttons .btn-primary {
    flex: 1;
  }

  .upload-zone {
    min-height: 180px;
    padding: 18px 12px;
  }

  .form-footer {
    margin-top: 25px;
  }
}

/* VERY SMALL PHONES */

@media (max-width: 360px) {

  .brand-panel {
    padding: 17px 15px;
  }

  .form-panel {
    padding: 23px 15px 40px;
  }

  .brand-message h1 {
    font-size: 22px;
  }

  .progress-step {
    font-size: 8px;
  }

  .progress-line {
    margin: 0 5px;
  }

  .school-option-content {
    min-height: 88px;
  }

  .school-option-content small {
    font-size: 8px;
  }
}
