/* ============================================
   TracPrac — Login page styles
   Header / footer / buttons / tokens come from styles.css
   ============================================ */

.login-page {
  min-height: 100vh;
  padding-top: 64px; /* offset fixed navbar */
  background:
    radial-gradient(1000px 500px at -10% 10%, rgba(59,130,246,0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 90%, rgba(59,130,246,0.06), transparent 60%),
    var(--white);
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

/* ─── Visual panel ─── */
.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  color: var(--white);
  background: linear-gradient(135deg, hsl(211 70% 18%) 0%, hsl(211 60% 30%) 50%, hsl(211 55% 40%) 100%);
}
.visual-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}
.blob-1 { top: -120px; left: -120px; width: 380px; height: 380px; background: rgba(59,130,246,0.55); }
.blob-2 { bottom: -160px; right: -100px; width: 460px; height: 460px; background: rgba(96,165,250,0.35); }

.visual-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.visual-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
}
.visual-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.visual-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.visual-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.visual-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem;
  font-weight: 600;
}
.visual-badge svg { width: 20px; height: 20px; }

/* ─── Form panel ─── */
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #EBEEF3;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.06);
}

.login-heading h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.login-heading p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.input-wrap { position: relative; }
.input-wrap input,
.input-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 48px !important;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--gray-800);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* Login-specific input wrapper (overrides contact form styles) */
.login-form .input-wrap input,
.login-form .input-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 48px !important;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--gray-800);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.login-form .input-wrap select { padding-left: 14px !important; padding-right: 40px !important; cursor: pointer; }

.login-form .input-wrap input::placeholder { color: var(--gray-400); }
.login-form .input-wrap input:focus,
.login-form .input-wrap select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}
.login-form .input-wrap input.error,
.login-form .input-wrap select.error {
  border-color: #d32f2f;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}

.login-form label.error {
  display: block;
  color: #d32f2f !important;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 4px;
  font-weight: 500;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--gray-400);
  pointer-events: none;
}
.input-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--gray-400);
  pointer-events: none;
}

/* Login-form specific icon positioning */
.login-form .input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  pointer-events: none;
  z-index: 2;
}

.login-form .input-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  pointer-events: none;
  z-index: 2;
}

/* Row: show password + forgot */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--gray-600);
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-600);
  cursor: pointer;
}
.forgot-link {
  font-weight: 600;
  color: var(--blue-600);
  font-size: 15px;
}
.forgot-link:hover { text-decoration: underline; }

/* Submit */
.login-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.login-submit svg { width: 16px; height: 16px; transition: transform .25s ease; }
.login-submit:hover svg { transform: translateX(4px); }
#loginForm .login-submit {
  width: 50% !important;
}
/* Sign-up cta */
.signup-cta {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.signup-cta a {
  font-weight: 700;
  color: var(--blue-600);
  margin-left: 4px;
}
.signup-cta a:hover { text-decoration: underline; }
/* ──── Signup Form Styles (No Icons) ──── */
#tp-signup-form .input-wrap input,
#tp-signup-form .input-wrap select {
  width: 100%;
  padding: 12px 14px !important;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--gray-800);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

#tp-signup-form .input-wrap input:focus,
#tp-signup-form .input-wrap select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

#tp-signup-form .input-wrap input::placeholder {
  color: var(--gray-400);
}

#tp-signup-form .input-wrap input.error,
#tp-signup-form .input-wrap select.error {
  border-color: #d32f2f;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}

/* ──── Forgot Password Form (Has Icons) ──── */
#tp-forgot-form .input-wrap input,
#tp-forgot-form .input-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 48px !important;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--gray-800);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

#tp-forgot-form .input-wrap select {
  padding-left: 14px !important;
  padding-right: 40px !important;
  cursor: pointer;
}

#tp-forgot-form .input-wrap input::placeholder {
  color: var(--gray-400);
}

#tp-forgot-form .input-wrap input:focus,
#tp-forgot-form .input-wrap select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

#tp-forgot-form .input-wrap input.error,
#tp-forgot-form .input-wrap select.error {
  border-color: #d32f2f;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}
/* ─── Responsive ─── */
@media (max-width: 960px) {
  .login-grid { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-panel { padding: 40px 20px 60px; }
  .login-card { padding: 32px 24px; border-radius: 16px; }
}
