/* =====================================================
   iTRiders Ocean Teal — Auth Pages Stylesheet
   ===================================================== */

/* BODY SPLIT LAYOUT */
body.teal-auth-body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
}

/* ── LEFT PANEL ── */
.left-panel {
  width: 45%;
  background: #0b2535;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14,127,168,0.35) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 20%, rgba(14,127,168,0.15) 0%, transparent 50%);
}
.left-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.left-content {
  position: relative;
  z-index: 2;
}
.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.logo img {
  height: 38px;
  object-fit: contain;
}
.logo-ai {
  font-size: 0.65rem;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.left-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.left-heading span {
  color: #18b4ed;
}
.left-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 380px;
}

/* Feature list */
.feature-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}
.feature-text {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Footer / Testimonial */
.left-footer {
  position: relative;
  z-index: 2;
}
.testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
}
.testimonial-text {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 0.8rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.t-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7fa8, #18b4ed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.t-name {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}
.t-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ── RIGHT PANEL ── */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  position: relative;
}

/* Auth tabs */
.auth-tabs {
  display: flex;
  background: #f0efec;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  padding: 0.6rem;
  border-radius: 7px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--muted);
}
.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Auth form containers */
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.auth-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.8rem;
}

/* Form elements */
.teal-auth-body .form-group {
  margin-bottom: 1rem;
}
.teal-auth-body label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: 0.3px;
}
.teal-auth-body input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]),
.teal-auth-body select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.18s;
}
.teal-auth-body input:focus,
.teal-auth-body select:focus,
.teal-auth-body textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 127, 168, 0.1);
}
.teal-auth-body textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: all 0.18s;
  resize: vertical;
}

/* Password eye toggle */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap input {
  padding-right: 2.5rem;
}
.eye-toggle {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  user-select: none;
}

/* Role selector grid */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.role-option {
  display: none;
}
.role-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.5rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s;
  text-align: center;
  gap: 0.4rem;
}
.role-label:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent2);
}
.role-option:checked + .role-label {
  border-color: var(--accent);
  background: var(--accent2);
  color: var(--accent);
}
.role-emoji {
  font-size: 1.4rem;
}

/* Form row */
.teal-auth-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* Forgot password link */
.forgot {
  float: right;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.forgot:hover {
  text-decoration: underline;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 0.85rem;
  border-radius: 9px;
  border: none;
  background: var(--text);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  margin-top: 0.5rem;
}
.btn-submit:hover {
  background: #333;
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: scale(0.985);
}
.btn-submit.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 0.8;
}
.btn-submit.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: auth-spin 0.8s linear infinite;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}
#form-registration-container.loading {
  min-height: 200px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
#form-registration-container.loading::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 4px solid var(--accent2);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: auth-spin 0.8s linear infinite;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Social buttons */
.social-btns {
  display: flex;
  gap: 0.7rem;
}
.social-btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: border-color 0.18s, background 0.18s;
  color: var(--text);
}
.social-btn:hover {
  border-color: var(--text);
  background: #f5f5f3;
}
.social-btn .fa-linkedin {
  color: #0a66c2;
}
.social-btn .fa-google {
  color: #db4437;
}

/* Terms text */
.terms {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.2rem;
  line-height: 1.5;
}
.terms a {
  color: var(--accent);
  text-decoration: none;
}

/* Error text */
.teal-auth-body .error-text,
.teal-auth-body .text-danger {
  color: var(--red);
  font-size: 0.78rem;
  margin-top: 0.25rem;
}
.teal-auth-body .invalid-feedback {
  color: var(--red);
  font-size: 0.78rem;
}

/* Password Strength Indicators */
.pwd-indicators {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: #f8fafc;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
}
.ind-item {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.ind-item i {
  font-size: 0.6rem;
  opacity: 0.4;
  transition: color 0.2s, opacity 0.2s;
}
.ind-item.valid {
  color: var(--accent);
  font-weight: 600;
}
.ind-item.valid i {
  color: var(--accent);
  opacity: 1;
}
.ind-item.invalid {
  color: #ef4444;
}
.ind-item.invalid i {
  color: #ef4444;
  opacity: 1;
}

/* Alert box */
.teal-auth-body .alert-danger {
  background: var(--red-bg);
  border: 1px solid #f5c6c2;
  color: var(--red);
  border-radius: 9px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.teal-auth-body .alert-danger ul {
  margin: 0.3rem 0 0 1rem;
  padding: 0;
}
.teal-auth-body .alert-success {
  background: var(--green-bg);
  border: 1px solid #b3dcc3;
  color: var(--green);
  border-radius: 9px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Back link */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.auth-back-link:hover {
  text-decoration: underline;
}

/* OTP input */
.otp-input {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.8rem;
  padding: 0.8rem 1rem !important;
}

/* Resend button */
.btn-resend {
  width: 100%;
  padding: 0.7rem;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  margin-top: 0.5rem;
}
.btn-resend:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent2);
}
.btn-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* AJAX Field Errors */
.input-error-border {
  border-color: var(--red) !important;
}
.ajax-error {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

/* Terms checkbox area */
.terms-check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}
.terms-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.terms-check-row label {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--text);
}

/* Remember me */
.remember-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.remember-row label {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--text);
}

/* Registration form specifics */
.reg-form-wide .auth-box {
  max-width: 580px;
}

/* Password input group for registration */
.teal-auth-body .password-field {
  position: relative;
}
.teal-auth-body .password-field input {
  padding-right: 2.5rem;
}
.teal-auth-body .password-field .toggle-password {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
}

/* Toast (from teal-base.css, duplicated for standalone auth pages) */
/* ── REGISTRATION EXTRAS ── */
.profile-upload-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.profile-preview-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.profile-preview-circle i {
  font-size: 1.1rem !important;
}
.profile-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#profileImagePreview {
  position: relative;
  width: 42px;
  height: 42px;
}
.clear-preview-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--red);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  z-index: 10;
  padding: 0;
  outline: none;
}
.clear-preview-btn:hover {
  background: var(--red-bg);
  border-color: var(--red);
}
.custom-file-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  height: 42px;
}
.custom-file-input.disabled {
  opacity: 0.55;
  background: var(--surface2);
  border-color: var(--border);
  pointer-events: none;
}
.custom-file-input.disabled .file-btn {
  background: var(--surface2);
}
.custom-file-input.disabled .file-btn:hover {
  background: var(--surface2);
}
.file-btn {
  background: var(--surface2);
  padding: 0 1rem;
  height: 100%;
  display: block;
  line-height: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  border-right: 1.5px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: 0 !important;
}
.file-btn:hover {
  background: #e4eaee;
}
.file-name {
  flex: 1;
  padding: 0 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 40px;
}

/* Avatar Presets */
.avatar-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.avatar-preset-btn {
  width: 52px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 3px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.avatar-preset-btn img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.avatar-preset-btn.active {
  border-color: var(--accent);
  background: var(--accent2);
}
.avatar-preset-btn.active::after {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fff;
  color: var(--accent);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

/* Autofill button */
.autofill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 9px;
  border: 1.5px solid var(--accent);
  background: var(--accent2);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.autofill-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Resume group */
.resume-upload-group {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
@media (max-width: 600px) {
  .resume-upload-group {
    flex-direction: column;
  }
  .resume-upload-group input {
    max-width: 100% !important;
  }
}

.teal-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.28s;
  pointer-events: none;
  z-index: 9999;
  box-shadow: var(--shadow);
}
.teal-toast.show {
  opacity: 1;
  transform: none;
}
.teal-toast.success {
  background: var(--green);
}
.teal-toast.error {
  background: var(--red);
}

/* Password Indicators */
.pwd-indicators {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.ind-item {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.ind-item i {
  font-size: 0.6rem;
}
.ind-item.valid {
  color: #10b981; /* Green */
}
.ind-item.valid i {
  color: #10b981;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .left-panel {
    display: none !important;
  }
  .right-panel {
    padding: 1.5rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .auth-box {
    width: 100% !important;
    max-width: 100% !important;
  }
  .teal-auth-body .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .role-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  .resume-upload-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
  }
  .resume-upload-group .custom-file-input {
    width: 100% !important;
  }
  .autofill-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .right-panel {
    padding: 1.25rem 1rem !important;
  }
  .profile-upload-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }
  .profile-upload-row > div {
    width: 100% !important;
  }
  .avatar-preset-grid {
    justify-content: center !important;
  }
  .social-btns {
    flex-direction: column !important;
    gap: 0.6rem !important;
  }
  .auth-tabs {
    margin-bottom: 1.5rem !important;
  }
}

/* Premium Teal Parse Overlay */
.parse-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 37, 53, 0.45);
  backdrop-filter: blur(8px) saturate(140%);
}
.parse-card {
  width: min(480px, 92vw);
  border-radius: 20px;
  background: linear-gradient(135deg, #0e7fa8 0%, #18b4ed 100%);
  padding: 1.5px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.parse-card-inner {
  border-radius: 19px;
  background: #0b2535;
  color: #fff;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.parse-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.parse-title i { color: #18b4ed; }
.parse-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.parse-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.parse-bar > span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #0e7fa8, #18b4ed, #0e7fa8);
  background-size: 200% auto;
  border-radius: 99px;
  position: absolute;
  animation: parseProgress 1.5s ease-in-out infinite;
}
@keyframes parseProgress {
  0% { left: -40%; }
  100% { left: 100%; }
}
.parse-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 16px;
  text-align: center;
}
.parse-done { color: #34d399; }
.parse-fail { color: #f87171; }

