
/* tutors_signup.css (updated) - compact single-column focused form */

/* Basic reset / helpers (only the bits we need) */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary, #111);
  background: var(--page-bg, #f6f8fb);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.35;
}

/* Page container (main) */
.signup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

/* Wrap constrains width and centers grid */
.signup-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Use single-column layout to give full space for the form */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Hide illustration permanently (we removed it from markup) */
.signup-illus { display: none !important; }

/* Signup card (form) */
.signup-card.card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10,20,30,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* card body and footer */
.card-body { padding: 22px; }
.card-footer { padding: 12px 18px; border-top: 1px solid rgba(10,20,30,0.03); background: rgba(0,0,0,0.02); }

/* Headings */
.h3 { margin: 0 0 10px 0; font-size:1.35rem; font-weight:700; color:var(--text-primary,#0b2545); }
.h6 { margin: 12px 0 8px 0; font-size:1rem; font-weight:700; color:var(--text-primary,#0b2545); }

/* Helper text */
.text-muted { color: var(--text-secondary, #6c757d); font-size:0.95rem; }
.small { font-size:0.86rem; }
.text-center { text-align:center; }

/* Form layout */
.signup-form { width: 100%; }
.form-field { margin-bottom: 14px; display:flex; flex-direction:column; gap:6px; }
.form-field label, .form-label { font-weight:600; color: var(--label-color, #333); font-size:0.95rem; }
.flex-fill { flex: 1; }
.row-align-center { align-items: center; }
.gap-12 { gap: 12px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.ml-12 { margin-left: 12px; }
.inline-block { display: inline-block; }

/* Inputs, select, textarea */
.form-control, input.form-control, select.form-control, textarea.form-control {
  display:block; width:100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-color, #d7d7d7); background: var(--input-bg, #fff); color: var(--text-primary, #111); font-size: 1rem; line-height:1.2;
}
.form-control:focus { outline: none; box-shadow: 0 0 0 4px rgba(11,93,215,0.07); border-color: var(--primary-color, #0b5ed7); }

/* Two-column row */
.form-row.two-col { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

/* Button styles moved to components/button.css (site-wide) */
.form-actions { margin-top: 12px; }

/* Inline helper text & errors */
.form-text { font-size:0.88rem; color: var(--text-secondary, #666); }
.form-text.text-danger { color: #b21f2d; font-weight:600; }

/* Password controls */
.password-input-wrapper { display:flex; align-items:center; gap:8px; width:100%; }
.password-input-wrapper .form-control, .password-input-wrapper .password-input { flex: 1; min-width: 0; }
.pw-toggle { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:8px; background: transparent; border:1px solid var(--border-color,#d7d7d7); cursor:pointer; padding:6px; line-height:0; }
.pw-toggle:focus { outline: 3px solid rgba(11,93,215,0.12); outline-offset: 2px; }
.pw-toggle .icon { width: 18px; height: 18px; display:block; }
.pw-toggle.pw-visible { background: rgba(11,93,215,0.06); }
.password-strength { margin-top:8px; }
.password-strength .meter { height:8px; width:0%; border-radius:6px; background:#f1f1f1; box-shadow: inset 0 -2px 4px rgba(0,0,0,0.06); transition: width .18s ease, background-color .18s ease; }
.password-strength .meter.very-weak { background:#f44336; width:20%; }
.password-strength .meter.weak { background:#ff7043; width:40%; }
.password-strength .meter.medium { background:#ffb300; width:70%; }
.password-strength .meter.strong { background:#4caf50; width:100%; }
.password-strength .strength-text { display:inline-block; margin-top:6px; font-size:0.85rem; color:var(--text-secondary,#666); }

/* Small devices: full width card and stack elements */
@media (max-width: 760px) {
  .signup-grid { grid-template-columns: 1fr; }
  .signup-card { border-radius: 10px; }
  .card-body { padding: 18px; }
}

/* Accessibility: focus-visible and reduced motion */
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(11,93,215,0.18); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .password-strength .meter, .card-body, .pw-toggle { transition: none !important; }
}

/* Error visual state for form controls */
.form-control.is-invalid, input.form-control.is-invalid, select.form-control.is-invalid, textarea.form-control.is-invalid { border-color: #b21f2d; box-shadow: 0 0 0 4px rgba(178,31,45,0.06); }

/* ------------------------------------------------------------------
   Section grouping styles (visual separation & subtle backgrounds)
   ------------------------------------------------------------------ */

/* container applied by JS: .tutor-section wraps a heading + related fields */
.tutor-section {
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
  border: 1px solid rgba(10,20,30,0.04);
  display: block;
  background: transparent; /* keep outer subtle */
}

/* slightly cleaner inner area so form controls sit on a clear white tile */
.tutor-section .section-inner {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(10,20,30,0.02) inset;
}

/* readable heading block inside the section */
.tutor-section .section-heading {
  display:flex;
  align-items:center;
  gap:12px;
  margin: -14px 0 10px -14px;
  padding: 12px 14px;
  border-radius: 8px 8px 0 0;
  font-weight:700;
  color: var(--text-primary, #0b2545);
  border-bottom: 1px solid rgba(10,20,30,0.03);
  background: rgba(255,255,255,0.9);
}

/* subtle divider under heading when desired */
.tutor-section .section-heading .sub {
  font-weight:400;
  font-size:0.92rem;
  color: var(--text-secondary,#6c757d);
}

/* selected color palette — happy, vibrant accessible accents */

.tutor-section--1 {
  background: linear-gradient(180deg, rgba(221,236,255,0.92), rgba(235,248,255,0.96));
}
.tutor-section--1 .section-heading {
  background: rgba(210,235,255,0.98);
  color: #0b2545;
  border-bottom-color: rgba(11,37,69,0.06);
}

.tutor-section--2 {
  background: linear-gradient(180deg, rgba(220,255,238,0.92), rgba(235,255,245,0.96));
}
.tutor-section--2 .section-heading {
  background: rgba(200,245,220,0.98);
  color: #0b2545;
  border-bottom-color: rgba(11,37,69,0.06);
}

.tutor-section--3 {
  background: linear-gradient(180deg, rgba(255,250,220,0.92), rgba(255,255,235,0.96));
}
.tutor-section--3 .section-heading {
  background: rgba(255,245,190,0.98);
  color: #0b2545;
  border-bottom-color: rgba(11,37,69,0.06);
}

.tutor-section--4 {
  background: linear-gradient(180deg, rgba(255,240,245,0.92), rgba(255,245,250,0.96));
}
.tutor-section--4 .section-heading {
  background: rgba(255,220,235,0.98);
  color: #0b2545;
  border-bottom-color: rgba(11,37,69,0.06);
}

.tutor-section--5 {
  background: linear-gradient(180deg, rgba(235,240,255,0.92), rgba(245,248,255,0.96));
}
.tutor-section--5 .section-heading {
  background: rgba(220,230,255,0.98);
  color: #0b2545;
  border-bottom-color: rgba(11,37,69,0.06);
}

.tutor-section--6 {
  background: linear-gradient(180deg, rgba(247,240,255,0.92), rgba(250,245,255,0.96));
}
.tutor-section--6 .section-heading {
  background: rgba(235,220,255,0.98);
  color: #0b2545;
  border-bottom-color: rgba(11,37,69,0.06);
}

/* ensure form controls inside section keep normal appearance */
.tutor-section .form-field,
.tutor-section .form-row,
.tutor-section .form-text {
  background: transparent;
  margin-bottom: 8px;
}

/* make HRs thinner and avoid double-visual with section borders */
.card-body hr {
  border: none;
  border-top: 1px solid rgba(10,20,30,0.04);
  margin: 14px 0;
}

/* Small screens: reduce padding */
@media (max-width: 760px) {
  .tutor-section { padding: 10px; margin: 10px 0; }
  .tutor-section .section-heading { padding: 8px 10px; margin-left: -10px; margin-right: -10px; }
}

/* Focus style for interactive row buttons */
.btn-link { cursor: pointer; text-decoration: underline; color: var(--primary-color, #0b5ed7); }
.btn-link:focus { outline: 3px solid rgba(11,93,215,0.12); outline-offset: 3px; }

/* qualification file UI micro-polish */
.qualification-row .existing-doc { display:flex; gap:6px; align-items:center; }
.qualification-row .qual-existing-link { color: var(--primary-color, #0b5ed7); font-weight:600; }
.qualification-actions-row,
.qualification-doc-row {
  margin-top: 6px;
  align-items: center;
  gap: 8px;
}
.existing-doc-top { margin-top: 6px; }
.existing-doc-bottom { margin-bottom: 6px; }
.form-check-inline-gap { margin-left: 8px; }

/* small helper for selected filename */
small.selected-filename, .selected-filename { font-size:0.88rem; color:var(--text-secondary,#666); }

/* End of file */
