/* =============================================
   AutoServe Pro — Login  |  Light Teal Theme
   Fully Mobile Responsive
   ============================================= */

:root {
  --teal:            #20B2AA;
  --teal-dark:       #178F88;
  --teal-deeper:     #0E6E69;
  --teal-light:      #E0F5F4;
  --teal-xlight:     #F0FAFA;
  --teal-mid:        rgba(32,178,170,0.15);
  --teal-glow:       rgba(32,178,170,0.25);

  --lp-bg:           #F2FAFA;
  --lp-text:         #0D3B39;
  --lp-muted:        #5A8B88;
  --lp-card-bg:      #FFFFFF;
  --lp-card-bdr:     rgba(32,178,170,0.18);

  --rp-bg:           #EAF7F6;
  --card-bg:         #FFFFFF;
  --card-shadow:     0 12px 40px rgba(32,178,170,0.14), 0 2px 8px rgba(0,0,0,0.06);

  --input-bg:        #F5FEFE;
  --input-bdr:       #C8E9E8;
  --input-focus-ring: rgba(32,178,170,0.18);

  --text-dark:       #0D2B2A;
  --text-body:       #3A5C5B;
  --text-muted:      #7AADAA;
  --text-label:      #4A8280;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'Barlow', sans-serif;
  background: var(--lp-bg);
  display: flex;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════ */
.left-panel {
  flex: 1;
  position: relative;
  background: var(--lp-bg);
  display: flex;
  align-items: center;
  padding: 56px 64px;
  overflow: hidden;
  min-height: 100vh;
}

.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(32,178,170,0.18) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.teal-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
}
.blob-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(32,178,170,0.22) 0%, transparent 70%);
  top: -80px; left: -60px;
}
.blob-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(14,110,105,0.12) 0%, transparent 70%);
  bottom: 40px; right: 40px;
}

.left-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(32,178,170,0.1);
  border: 1px solid rgba(9, 48, 46, 0.35);
  color: var(--teal-deeper);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--teal);
  animation: blink 2.2s ease-in-out infinite;
}

/* Headline */
.headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.02;
  color: var(--lp-text);
  letter-spacing: 0.025em;
  margin-bottom: 18px;
  animation: fadeUp 0.65s 0.08s ease both;
}
.headline em {
  font-style: italic;
  color: var(--teal);
  text-shadow: 0 0 28px rgba(32,178,170,0.3);
}

/* Subtext */
.subtext {
  font-size: 15px;
  line-height: 1.72;
  color: var(--lp-muted);
  margin-bottom: 36px;
  animation: fadeUp 0.65s 0.16s ease both;
}

/* Feature Cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp 0.65s 0.24s ease both;
}
.card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--lp-card-bg);
  border: 1.5px solid var(--lp-card-bdr);
  border-radius: 14px;
  padding: 15px 20px;
  cursor: default;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(32,178,170,0.06);
}
.card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 18px rgba(32,178,170,0.15);
  transform: translateX(4px);
}
.card-icon {
  width: 42px; height: 42px;
  background: var(--teal-light);
  border: 1.5px solid rgba(32,178,170,0.25);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 18px; height: 18px; stroke: var(--teal-dark); }
.card-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.card-text span { font-size: 12.5px; color: var(--lp-muted); }

/* ══════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════ */
.right-panel {
  width: 448px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-bg);
  padding: 32px 24px;
  position: relative;
  flex-shrink: 0;
}
.right-panel::before {
  display: none;
}

/* ══════════════════════════════════════════
   LOGIN CARD
══════════════════════════════════════════ */
.login-card {
  width: 100%;
  max-width: 390px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 0 0 26px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  animation: slideIn 0.7s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}

.card-top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, #2DD4BF 100%);
}

/* Card Header */
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
  margin-bottom: 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 11px; }
.logo-icon{
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo-circle{
  width:40px;
  height:40px;
  border-radius:70%;
  background:#20B2AA;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.logo-circle img{
  width:48px;
  height:48px;
  object-fit:contain;
}
.logo-icon svg { width: 42px; height: 42px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 21px;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}
.logo-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.version-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  background: var(--teal-light);
  border: 1px solid rgba(32,178,170,0.3);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}

/* Card Title */
.login-title {
  padding: 0 24px;
  margin-bottom: 20px;
}
.login-title h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.login-title p { font-size: 13px; color: var(--text-muted); }

/* Form Groups */
.form-group {
  padding: 0 24px;
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.i-icon {
  position: absolute;
  left: 12px;
  width: 16px; height: 16px;
  stroke: var(--text-muted);
  pointer-events: none;
  transition: stroke 0.2s;
  z-index: 1;
}
.input-wrap input {
  width: 100%;
  padding: 12px 42px 12px 38px;
  border: 1.5px solid var(--input-bdr);
  border-radius: 10px;
  background: var(--input-bg);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;        /* 16px prevents iOS auto-zoom */
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.input-wrap input::placeholder { color: #A8CECE; }
.input-wrap input:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}
.input-wrap:focus-within .i-icon { stroke: var(--teal); }

/* Error state */
.form-group.has-error .input-wrap input {
  border-color: #E85C0D;
  box-shadow: 0 0 0 3px rgba(232,92,13,0.1);
}
.err-msg {
  display: none;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #E85C0D;
}
.form-group.has-error .err-msg { display: block; }

/* Eye toggle */
.eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.eye-btn svg { width: 17px; height: 17px; stroke: var(--text-muted); transition: stroke 0.2s; }
.eye-btn:hover svg, .eye-btn:active svg { stroke: var(--teal); }

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.remember input[type="checkbox"] { display: none; }
.tick {
  width: 18px; height: 18px;
  border: 1.5px solid var(--input-bdr);
  border-radius: 5px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.remember input:checked + .tick {
  background: var(--teal);
  border-color: var(--teal);
}
.remember input:checked + .tick::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}
.forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.forgot-link:hover { opacity: 0.7; }

/* Sign In Button */
.btn-wrap { padding: 0 24px; margin-bottom: 16px; }
.btn-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px rgba(32,178,170,0.38);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-signin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.btn-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(32,178,170,0.45);
  filter: brightness(1.06);
}
.btn-signin:active { transform: translateY(1px); box-shadow: 0 2px 10px rgba(32,178,170,0.3); }
.btn-arr { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-signin:hover .btn-arr { transform: translateX(4px); }

/* Spinner */
.btn-spinner {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  align-items: center;
  justify-content: center;
}
.btn-spinner.active { display: flex; }
.spin-ring {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 24px;
  text-align: center;
  flex-wrap: wrap;
  line-height: 1.6;
}
.card-footer svg { opacity: 0.55; flex-shrink: 0; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 960px)
══════════════════════════════════════════ */
@media (max-width: 960px) {
  body { flex-direction: column; overflow-y: auto; overflow-x: hidden; }

  .left-panel {
    min-height: auto;
    padding: 40px 40px 44px;
    align-items: flex-start;
  }
  .blob-1 { width: 240px; height: 240px; top: -40px; left: -40px; }
  .blob-2 { display: none; }

  .feature-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .card:last-child { grid-column: span 2; }

  .right-panel {
    width: 100%;
    min-height: auto;
    padding: 36px 24px 48px;
  }
  .right-panel::before { display: none; }
  .login-card { animation: fadeUp 0.55s ease both; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
   Login card only — hide features panel
══════════════════════════════════════════ */
@media (max-width: 600px) {

  /* Hide left panel entirely on mobile */
  .left-panel { display: none; }

  /* Right panel fills the full screen */
  .right-panel {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-xlight);
  }
  .right-panel::before { display: none; }

  /* Decorative teal background blobs for visual depth */
  .right-panel::after {
    content: '';
    position: fixed;
    top: -80px; left: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(32,178,170,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  /* Card: centered, fills screen width with comfortable margin */
  .login-card {
    border-radius: 20px;
    width: calc(100% - 32px);
    max-width: 400px;
    margin: 24px auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(32,178,170,0.18), 0 2px 8px rgba(0,0,0,0.07);
    animation: fadeUp 0.55s ease both;
  }

  .login-header { padding: 20px 20px 0; margin-bottom: 16px; }
  .logo-icon { width: 40px; height: 40px; }
  .logo-icon svg { width: 40px; height: 40px; }
  .logo-name { font-size: 20px; }

  .login-title { padding: 0 20px; margin-bottom: 16px; }
  .login-title h2 { font-size: 19px; }
  .login-title p  { font-size: 13px; }

  .form-group   { padding: 0 20px; margin-bottom: 14px; }
  .input-wrap input { padding: 13px 42px 13px 38px; font-size: 16px; }

  .form-options { padding: 0 20px; margin-bottom: 18px; }

  .btn-wrap     { padding: 0 20px; margin-bottom: 14px; }
  .btn-signin   { padding: 14px; font-size: 15px; }

  .card-footer  { padding: 0 20px 4px; font-size: 11px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 380px)
══════════════════════════════════════════ */
@media (max-width: 380px) {
  .login-card { width: calc(100% - 24px); border-radius: 16px; }

  .login-header { padding: 18px 16px 0; }
  .logo-name    { font-size: 18px; }
  .logo-sub     { font-size: 8px; }
  .version-chip { font-size: 10px; padding: 3px 7px; }

  .login-title  { padding: 0 16px; }
  .login-title h2 { font-size: 17px; }
  .login-title p  { font-size: 12px; }

  .form-group   { padding: 0 16px; }
  .form-options { padding: 0 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-wrap     { padding: 0 16px; }
  .card-footer  { padding: 0 16px; }
}