/**
 * Tutor — Login page CSS
 * Scoped to body.tutor-login-theme
 * Design: dark navy glassmorphism, electric blue + cyan accents
 * Palette: navy #050d1a · panel #0f1f38 · blue #1a6cf6 · cyan #00d4ff · text #e8f0fe · muted #8fa3bb
 */

/* ─── Reset & base ──────────────────────────────────── */
body.tutor-login-theme {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #050d1a;
  color: #e8f0fe;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.tutor-login-theme * {
  box-sizing: border-box;
}

/* ─── Hide framework chrome ─────────────────────────── */
body.tutor-login-theme #large-header,
body.tutor-login-theme .navbar,
body.tutor-login-theme nav.navbar,
body.tutor-login-theme header.navbar,
body.tutor-login-theme > footer:not(.tutor-auth-footer) {
  display: none !important;
}

/* ─── Background blobs ──────────────────────────────── */
.tutor-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: tutorBlobDrift 14s ease-in-out infinite alternate;
}

.tutor-blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(26,108,246,0.22) 0%, transparent 70%);
  top: -120px;
  left: -100px;
  animation-delay: 0s;
}

.tutor-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
  animation-delay: -5s;
}

.tutor-blob-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(26,108,246,0.12) 0%, transparent 70%);
  top: 50%;
  left: 55%;
  animation-delay: -9s;
}

@keyframes tutorBlobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.06); }
}

/* ─── Grid overlay ──────────────────────────────────── */
.tutor-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26,108,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,108,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Auth wrapper ──────────────────────────────────── */
.tutor-auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 32px;
}

/* ─── Brand panel ───────────────────────────────────── */
.tutor-auth-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tutor-auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: #e8f0fe;
}

.tutor-logo-icon {
  font-size: 1.6rem;
  background: linear-gradient(135deg, #1a6cf6, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.45));
  animation: tutorLogoPulse 3s ease-in-out infinite;
}

@keyframes tutorLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0,212,255,0.4)); }
  50%       { filter: drop-shadow(0 0 22px rgba(0,212,255,0.7)); }
}

.tutor-auth-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #8fa3bb;
  letter-spacing: 0.01em;
}

/* ─── Feature badges ────────────────────────────────── */
.tutor-auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.tutor-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8fa3bb;
  background: rgba(26,108,246,0.08);
  border: 1px solid rgba(26,108,246,0.2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tutor-feature-badge svg {
  opacity: 0.7;
  color: #1a6cf6;
  flex-shrink: 0;
}

/* ─── Auth card ─────────────────────────────────────── */
.tutor-auth-card {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  background: rgba(15,31,56,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(26,108,246,0.18);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.04),
    0 24px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(26,108,246,0.06) inset;
}

/* ─── Step bar ──────────────────────────────────────── */
.tutor-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.tutor-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.tutor-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(26,108,246,0.25);
  background: rgba(15,31,56,0.9);
  color: #8fa3bb;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tutor-step-circle.active {
  border-color: #1a6cf6;
  background: linear-gradient(135deg, #1a6cf6, #00d4ff);
  color: #fff;
  box-shadow: 0 0 14px rgba(26,108,246,0.5);
}

.tutor-step-circle.done {
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.12);
  color: #00d4ff;
}

.tutor-step-label {
  font-size: 0.65rem;
  color: #8fa3bb;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.tutor-step-label.active {
  color: #1a6cf6;
}

.tutor-step-label.done {
  color: #00d4ff;
}

.tutor-step-line {
  flex: 1;
  height: 2px;
  min-width: 36px;
  background: rgba(26,108,246,0.15);
  margin: 0 6px;
  margin-bottom: 18px;
  transition: background 0.3s ease;
}

.tutor-step-line.done {
  background: linear-gradient(90deg, #1a6cf6, #00d4ff);
}

/* ─── Framework login layout (inside .tutor-auth-card) ─ */
body.tutor-login-theme #large-header,
body.tutor-login-theme .content_login > .col-md-4:not(.col_right_login),
body.tutor-login-theme .col_left_login,
body.tutor-login-theme .social-auth-links,
body.tutor-login-theme .login_txt_or,
body.tutor-login-theme .row > .col-md-12 {
  display: none !important;
}

body.tutor-login-theme .content_login {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.tutor-login-theme .content_login .col_right_login {
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  padding: 0;
  flex: 0 0 auto;
}

body.tutor-login-theme .div_tabs_login_form {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.tutor-login-theme .nav_tabs_login_form {
  display: flex;
  border-bottom: 1px solid rgba(26,108,246,0.18);
  background: rgba(5,13,26,0.4) !important;
  margin: 0 !important;
  border-radius: 10px 10px 0 0;
}

body.tutor-login-theme .nav_tabs_login_form .nav-link {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #8fa3bb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  text-align: center;
}

body.tutor-login-theme .nav_tabs_login_form .nav-link.active {
  color: #1a6cf6 !important;
  border-bottom-color: #1a6cf6 !important;
  background: transparent !important;
}

body.tutor-login-theme .tab-content,
body.tutor-login-theme .tab-pane {
  padding: 0;
}

body.tutor-login-theme.login-page .login-box,
body.tutor-login-theme .login-box {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.tutor-login-theme.login-page .login-box-body,
body.tutor-login-theme .login-box-body {
  width: 100%;
  max-width: 100%;
  padding: 16px 0 0;
  background: transparent !important;
  border: 0 !important;
  color: #e8f0fe !important;
}

body.tutor-login-theme .login-box-msg:empty {
  display: none;
}

body.tutor-login-theme .form-group {
  margin-bottom: 16px;
}

body.tutor-login-theme .form-control-feedback {
  color: #8fa3bb;
}

body.tutor-login-theme label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #8fa3bb;
}

body.tutor-login-theme input[type="checkbox"] {
  accent-color: #1a6cf6;
}

body.tutor-login-theme .row .col-xs-6 {
  width: 50%;
  float: left;
}

body.tutor-login-theme .row .col-xs-6 + .col-xs-6 {
  text-align: right;
}

body.tutor-login-theme .btn-primary.btn-flat {
  width: auto;
  min-width: 120px;
  padding: 11px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a6cf6 0%, #00d4ff 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(26,108,246,0.35);
}

/* ─── Form fields ───────────────────────────────────── */
body.tutor-login-theme .tutor-form-group {
  margin-bottom: 16px;
}

body.tutor-login-theme .tutor-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8fa3bb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

body.tutor-login-theme input[type="text"],
body.tutor-login-theme input[type="email"],
body.tutor-login-theme input[type="password"],
body.tutor-login-theme .form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(26,108,246,0.2);
  background: rgba(5,13,26,0.7);
  color: #e8f0fe;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

body.tutor-login-theme input[type="text"]:focus,
body.tutor-login-theme input[type="email"]:focus,
body.tutor-login-theme input[type="password"]:focus,
body.tutor-login-theme .form-control:focus {
  border-color: #1a6cf6;
  box-shadow: 0 0 0 3px rgba(26,108,246,0.15);
}

body.tutor-login-theme input::placeholder,
body.tutor-login-theme .form-control::placeholder {
  color: rgba(143,163,187,0.45);
}

/* ─── Submit button ─────────────────────────────────── */
body.tutor-login-theme .tutor-btn-login,
body.tutor-login-theme button[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a6cf6 0%, #00d4ff 100%);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(26,108,246,0.35);
}

body.tutor-login-theme .tutor-btn-login:hover,
body.tutor-login-theme button[type="submit"]:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,108,246,0.45);
}

body.tutor-login-theme .tutor-btn-login:active,
body.tutor-login-theme button[type="submit"]:active {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Divider ───────────────────────────────────────── */
.tutor-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: rgba(143,163,187,0.4);
  font-size: 0.8rem;
}

.tutor-auth-divider::before,
.tutor-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26,108,246,0.12);
}

/* ─── Links inside card ─────────────────────────────── */
body.tutor-login-theme a {
  color: #1a6cf6;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

body.tutor-login-theme a:hover {
  color: #00d4ff;
}

/* ─── OTP group ─────────────────────────────────────── */
.tutor-otp-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 16px;
}

.tutor-otp-box {
  width: 44px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid rgba(26,108,246,0.2);
  background: rgba(5,13,26,0.8);
  color: #e8f0fe;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  font-family: 'Sora', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.tutor-otp-box:focus {
  border-color: #1a6cf6;
  box-shadow: 0 0 0 3px rgba(26,108,246,0.2);
}

.tutor-otp-box.filled {
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.06);
  color: #00d4ff;
}

/* ─── Footer ────────────────────────────────────────── */
.tutor-auth-footer {
  font-size: 0.75rem;
  color: rgba(143,163,187,0.45);
  text-align: center;
  padding: 8px 0;
}

/* ─── Alerts / messages ─────────────────────────────── */
body.tutor-login-theme .alert {
  border-radius: 10px;
  border: 1px solid rgba(26,108,246,0.2);
  background: rgba(26,108,246,0.08);
  font-size: 0.875rem;
  padding: 10px 14px;
}

body.tutor-login-theme .alert-danger {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
  color: #fca5a5;
}

body.tutor-login-theme .alert-success {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.06);
  color: #67e8f9;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 480px) {
  .tutor-auth-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .tutor-auth-logo {
    font-size: 1.6rem;
  }

  .tutor-otp-box {
    width: 38px;
    height: 46px;
    font-size: 1.1rem;
  }

  .tutor-auth-features {
    gap: 6px;
  }

  .tutor-step-line {
    min-width: 24px;
  }
}
