/* =====================================================================
   REGISTRATION PAGES - SHARED STYLES
   Used by BOTH the student sign-up page (studentregistration.html) and the tutor
   sign-up page (tutorregistration.html): floating-label fields, option
   pills, OTP page inputs, modals and buttons.

   These rules used to be copied word-for-word into each page's own CSS
   file. They live here once now. A look that should be DIFFERENT on one
   page belongs in that page's own file (css/pages/student-registration.css
   or css/pages/tutor-registration.css), which loads after this one.
   ===================================================================== */

/* =========================================================
   URBANTUTORSITE
   STUDENT REGISTRATION
   ORIGINAL DARK + LIME DESIGN
========================================================= */


/* =========================================================
   ROOT
========================================================= */
:root {
  --bg: #050505;
  --surface: #101010;
  --surface-2: #151515;

  --border: #292929;
  --border-light: #353535;

  --text: #f5f5f5;
  --muted: #9a9a9a;
  --muted-2: #6f6f6f;

  --lime: #16a34a;
  --lime-hover: #22c55e;

  --danger: #ff6868;
  --success: #72e39a;
  --info: #8fa0ff;

  --radius: 18px;
}

/* =========================================================
   RESET
========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  background: var(--bg);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.kicker {
  margin-bottom: 15px;

  color: var(--lime);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 3px;
  text-transform: uppercase;
}

.required {
  color: var(--lime);
}

/* =========================================================
   PLACEHOLDER
========================================================= */
input::placeholder,
textarea::placeholder {
  color: #454545;
  opacity: 1;
}

/* =========================================================
   READONLY EMAIL
========================================================= */
input[readonly] {
  color: #777777 !important;
  background: #090909 !important;

  cursor: default;
}

input[readonly]:focus {
  border-color: var(--border) !important;
  box-shadow: none !important;
}

/* =========================================================
   TEXTAREA
========================================================= */
textarea {
  resize: vertical;
  min-height: 120px;
}

.terms-text {
  flex: 1;
}

.inline-link {
  padding: 0;

  border: 0;

  color: var(--lime);

  background: transparent;

  font-weight: 700;

  text-decoration: underline;
}

.inline-link:hover {
  color: var(--lime-hover);
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */
.submit-area {
  margin-top: 28px;
}

/* =========================================================
   BACK BUTTON
========================================================= */
.back-link {
  padding: 0;

  margin-bottom: 30px;

  border: 0;

  color: #8e8e8e;

  background: transparent;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.back-link:hover {
  color: var(--lime);
}

/* =========================================================
   MESSAGES
========================================================= */
.message {
  min-height: 22px;

  margin-top: 16px;

  font-size: 14px;

  text-align: center;
}

.message.info {
  color: var(--info);
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

/* =========================================================
   HELPER TEXT
========================================================= */
.helper-text {
  display: block;

  margin-top: 7px;

  color: #686868;

  font-size: 12px;
}

.otp-header {
  margin-bottom: 30px;
}

.otp-header h2 {
  margin: 0 0 8px;

  font-size: 28px;
  font-weight: 800;

  letter-spacing: -1px;
}

.otp-header p {
  margin: 0;

  color: var(--muted);

  font-size: 15px;
}

.otp-header strong {
  color: #ffffff;
}

.otp-label {
  text-align: center;
}

.resend-button {
  padding: 0;

  border: 0;

  color: var(--lime);

  background: transparent;

  font-weight: 750;
}

.resend-button:disabled {
  color: #555555;

  cursor: not-allowed;
}

.success-mark {
  width: 70px;
  height: 70px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0 auto 28px;

  color: #050505;

  background: var(--lime);

  border-radius: 50%;

  font-size: 34px;
  font-weight: 900;
}

.success-description {
  max-width: 500px;

  margin: 20px auto;

  color: var(--muted);

  line-height: 1.7;
}

.secondary-button {
  width: 100%;

  min-height: 54px;

  margin-top: 12px;

  border: 1px solid var(--border);

  border-radius: 15px;

  color: #c0c0c0;

  background: transparent;

  font-weight: 750;
}

.secondary-button:hover {
  color: #ffffff;

  border-color: #444444;
}

.modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.82);
}

.modal-box .kicker {
  text-align: center;
}

.modal-box h2 {
  margin: 0 0 20px;

  font-size: 28px;

  letter-spacing: -1px;

  text-align: center;
}

.modal-box p {
  color: #999999;

  font-size: 14px;

  line-height: 1.7;

  text-align: justify;
  text-align-last: center;
}

.modal-close {
  position: absolute;

  top: 14px;
  right: 17px;

  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 0;

  color: #aaa;

  background: transparent;

  font-size: 28px;
}

.modal-close:hover {
  color: #ffffff;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/*
   Prevent double borders on all inputs.
*/
input:focus,
textarea:focus {
  outline: none;
}

.profile-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 163, 74, 0.45);
  border-radius: 50%;
  background: #111;
  color: inherit;
  transition: 0.2s;
}

.profile-button:hover {
  border-color: var(--lime);
  background: #181818;
  transform: translateY(-1px);
}

.profile-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer {
  padding: 45px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.social-links a {
  color: #999;
  font-size: 12px;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #555;
  font-size: 10px;
}

.profile-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.profile-modal-box {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px;
  background: #101010;
  border: 1px solid #303030;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.profile-modal-box h2 {
  margin: 0 0 22px;
  font-size: 30px;
  letter-spacing: -1px;
}

.profile-modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 28px;
}

.profile-modal-close:hover {
  color: #fff;
}

.student-profile-item {
  min-width: 0;
  padding: 13px 14px;
  background: #080808;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.student-profile-item span {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.student-profile-item strong {
  display: block;
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-logout {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  color: #c0c0c0;
  background: transparent;
  font-weight: 750;
}

.profile-logout:hover {
  color: #fff;
  border-color: #555;
}

.email-section-title > div,
.centered-section-title > div {
  width: 100%;
}

.centered-field-label {
  display: block !important;
  margin-bottom: 10px;
  text-align: center;
}

#registrationPage .centered-section-title > div {
  width: 100%;
}

.in-flag {
  display: block;
  width: 28px;
  height: 19px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pill-check-text {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pill-check-text {
  font-size: 14px;
}

.terms-text {
  text-align: justify;
  hyphens: auto;
}

.terms-badge {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.terms-badge svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

/* ---------- Terms tick: smaller, lime ---------- */
.terms-badge,
.terms-badge svg {
  width: 22px;
  height: 22px;
}

#emailPage .submit-area {
  margin-top: 20px;
}

/* status texts ("Checking your account...", "Sending OTP...",
   "Verifying...", "New OTP sent") are not shown - the buttons
   and boxes show a spinner instead. Real errors still show. */
.message.info,
.message.success {
  display: none !important;
}

.otp-hidden {
  display: none !important;
}

/* 2. We have sent a 6-digit verification code to */
.otp-sent {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* 3. the email */
.otp-email {
  display: block;
  margin: -6px 0 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* =========================================================
   NO BIG EMPTY SPACE UNDER THE EMAIL / OTP PAGES
   Every page used to be at least one full screen tall
   (min-height: 100vh), so a short page like the email or OTP
   step left a large blank area before the footer. Now the
   header, the current page and the footer share the screen:
   the page takes only the space left over, with its content
   centred in it, and the footer follows right after.
========================================================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* empty status lines take no space */
.message:empty {
  display: none;
}

/* =========================================================
   FOOTER: "(c) 2026 Urbantutorsite" centred
   (the rules above spread the bottom row to both edges, which
   pushed the single copyright line to the left)
========================================================= */
.footer-bottom {
  display: block;
  text-align: center;
}


/* ---------- Number already registered (tutor + student registration):
   light red bar above "Change Email", the rest of the form locked ---------- */

.phone-taken-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 104, 104, 0.12);
  color: #ff9a9a;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}
.phone-taken-banner.hidden { display: none; }

form .is-locked {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
