/* ==========================================================================
   TUTORMATCH AUTH CSS (FIXED & MATCHED TO TARGET UI)
   ========================================================================== */

:root {
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-bg-light: #F8FAFC;
  --color-border: #E2E8F0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.tm-auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, rgba(37,99,235,0.06), transparent 40%),
              radial-gradient(circle at bottom right, rgba(59,130,246,0.06), transparent 35%),
              #F1F5F9;
  font-family: 'Inter', sans-serif;
  padding: 40px 20px;
}

/* MAIN CONTAINER CARD */
.tm-auth-container {
  width: 100%;
  max-width: 1280px;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FFFFFF;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* LEFT VISUAL PANEL */
.tm-auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  overflow: hidden;
}

.tm-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 2;
}

.tm-auth-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.tm-auth-logo span {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tm-auth-visual-content {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.tm-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.tm-auth-visual-content h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text-main);
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tm-auth-visual-content h2 span {
  color: var(--color-primary);
}

.tm-auth-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

/* Feature List Cards (Left Panel) */
.tm-auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.tm-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.tm-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #DBEAFE;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tm-feature-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-main);
}

.tm-feature-text p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* RIGHT PANEL (FORM) */
.tm-auth-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background: #FFFFFF;
}

.tm-auth-panel-inner {
  width: 100%;
  max-width: 440px;
}

.tm-auth-heading {
  text-align: center;
  margin-bottom: 28px;
}

.tm-auth-heading h1, .tm-auth-heading h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tm-auth-heading p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Role Switch Tabs */
.tm-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.tm-tab-btn {
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tm-tab-btn.active {
  background: #FFFFFF;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Social Buttons */
.tm-social-group {
  margin-bottom: 20px;
}

.tm-social-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tm-social-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

/* Naye Google PNG Icon ka size control karne ke liye */
.tm-social-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Divider */
.tm-auth-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.tm-auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

.tm-auth-divider span {
  position: relative;
  padding: 0 14px;
  background: #FFFFFF;
  color: #94A3B8;
  font-size: 13px;
}

/* Form Styling */
.tm-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
}

/* Input Fields & Icons Alignment */
.tm-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tm-input-wrapper i.ti {
  position: absolute;
  left: 14px;
  font-size: 18px;
  color: #94A3B8;
  pointer-events: none;
}

.tm-input-wrapper input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--color-text-main);
  background: #FFFFFF;
  outline: none;
  transition: all 0.2s ease;
}

.tm-input-wrapper:has(.tm-password-toggle) input {
  padding-right: 44px;
}

.tm-input-wrapper input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.tm-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
  padding: 0;
}

.tm-password-toggle:hover {
  color: #64748B;
}

/* Form Options Row */
.tm-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.tm-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.tm-checkbox input {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.tm-forgot-link, .tm-checkbox a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Submit Button */
.tm-auth-submit, .tm-btn-primary {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tm-auth-submit:hover, .tm-btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  color: #FFFFFF;
}

.tm-auth-submit:focus,
.tm-auth-submit:focus-visible,
.tm-auth-submit:active,
.tm-btn-primary:focus,
.tm-btn-primary:focus-visible,
.tm-btn-primary:active {
  color: #FFFFFF;
}

.tm-auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 20px;
}

.tm-auth-switch a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

/* FORGOT PASSWORD SPECIFIC STYLES */
.tm-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.tm-info-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 12px;
  margin-top: 20px;
}

.tm-info-notice i {
  font-size: 20px;
  color: var(--color-primary);
}

.tm-info-notice strong {
  display: block;
  font-size: 13px;
  color: var(--color-text-main);
  margin-bottom: 2px;
}

.tm-info-notice p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .tm-auth-container {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .tm-auth-visual {
    display: none;
  }
  .tm-auth-panel {
    padding: 36px 24px;
  }
}
/* ==========================================================================
   FORGOT PASSWORD TARGET UI EXACT MATCH ADJUSTMENTS
   ========================================================================== */

/* Left Visual Layout Split */
.tm-visual-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    z-index: 2;
}

/* 3D Illustration Container Styling */
.tm-3d-illustration {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tm-3d-illustration img {
    max-width: 240px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 20px 30px rgba(37, 99, 235, 0.12));
}

/* Feature List (Remove Cards Background) */
.tm-auth-features.clean-list {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tm-feature-item.clean {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Blue Solid Icon Box matching Target Image */
.tm-feature-icon.blue-filled {
    width: 36px;
    height: 36px;
    background: #FFFFFF !important;
    color: #0066ff !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tm-feature-item.clean .tm-feature-text h4 {
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
}

.tm-feature-item.clean .tm-feature-text p {
    font-size: 10px;
    color: #64748B;
    line-height: 1.4;
}
/* Lock Badge Circle Styling (Right Panel Center Header) */
.tm-auth-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

.tm-auth-badge-circle {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: #EFF6FF; /* Soft light blue background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-badge-q-mark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: #2563EB; /* Solid blue badge */
    color: #FFFFFF;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

/* Align heading to center like the target UI */
.tm-auth-panel-inner .tm-auth-heading {
    text-align: center !important;
}
/* Text Compact Size & Left Shift Adjustments */
.tm-auth-visual-content.forgot-adjust {
    position: relative;
    max-width: 280px; /* Width kam karke compact aur left aligned karne ke liye */
    text-align: left;
    margin-left: 0;
}

.tm-auth-visual-content.forgot-adjust h2 {
    font-size: 30px; /* Heading size chota kar diya */
    line-height: 1.2;
    margin-bottom: 12px;
}

.tm-auth-visual-content.forgot-adjust .tm-auth-desc {
    font-size: 13.5px; /* Description font size reduced */
    line-height: 1.5;
    color: #64748B;
}

/* 4x4 Blue Dots Grid Graphic */
.tm-dot-grid {
    position: absolute;
    top: -30px;
    right: -180px;
    width: 64px;
    height: 64px;
    opacity: 0.35;
    background-image: radial-gradient(#2563EB 2px, transparent 2px);
    background-size: 16px 16px; /* Perfect 4x4 grid spacing */
    pointer-events: none;
}
/* ==========================================================================
   EXACT 100% SCREEN FIT FIX (NO OVERFLOW / NO SCROLL)
   ========================================================================== */

/* Main outer container aur wrapper ki height aur padding compact karna */
.tm-auth-wrapper, 
.tm-auth-container {
    min-height: 100vh !important;
    padding: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Main White Card Size Control */
.tm-auth-card {
    max-width: 960px !important; /* Width kam ki */
    max-height: 90vh !important; /* Screen height ke andar fit karega */
    margin: auto !important;
}

/* Inner Panels (Left & Right) ki padding kam ki */
.tm-auth-visual, 
.tm-auth-panel {
    padding: 20px 24px !important;
}

/* Top Back link aur Header margins reduce kiye */
.tm-back-link {
    margin-bottom: 8px !important;
}

.tm-auth-badge-wrapper {
    margin-top: 5px !important;
    margin-bottom: 10px !important;
}

.tm-auth-badge-circle {
    width: 65px !important;
    height: 65px !important;
}

/* Headings aur text sizes ko compact kiya */
.tm-auth-panel-inner .tm-auth-heading h2 {
    font-size: 22px !important;
    margin-bottom: 4px !important;
}

.tm-auth-panel-inner .tm-auth-heading p {
    font-size: 12px !important;
}

/* Input, Buttons aur Spacing Adjustment */
.tm-auth-form .form-group {
    margin-bottom: 12px !important;
}

.tm-auth-features.clean-list {
    gap: 10px !important;
}

.tm-feature-item.clean {
    padding: 0 !important;
}

