/* =========================================
   Brand tokens (colors only)
   ========================================= */
:root {
  --dt-teal: #327179;
  --dt-emerald: #3e8c78;
  --dt-mist: #e6f4f1;
  --dt-ink: #071c1f;

  --dt-radius-lg: 24px;
  --dt-radius-md: 16px;
  --dt-shadow-soft: 0 26px 60px rgba(4, 23, 27, 0.45);
}

/* =========================================
   AUTH BACKDROP (Login / Forgot / Reset)
   ========================================= */

.login-body {
  min-height: 100vh;
  margin: 0;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  background-color: var(--dt-ink);
  background-image: radial-gradient(
      circle at 0% 0%,
      rgba(230, 244, 241, 0.9) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(62, 140, 120, 0.65) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, rgba(50, 113, 121, 0.96), rgba(62, 140, 120, 0.92));
  background-blend-mode: screen, soft-light, normal;
}

/* animated conic “halo” across the whole page */
.login-body::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 220deg,
    rgba(230, 244, 241, 0.35),
    rgba(62, 140, 120, 0.16),
    transparent,
    rgba(50, 113, 121, 0.4),
    rgba(230, 244, 241, 0.35)
  );
  opacity: 0.7;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: auth-orbit 26s linear infinite;
}

/* soft floating texture */
.login-body::after {
  content: "";
  position: absolute;
  inset: -30%;
  background-image: radial-gradient(
    circle,
    rgba(230, 244, 241, 0.2) 0,
    transparent 60%
  );
  mix-blend-mode: soft-light;
  opacity: 0.7;
  pointer-events: none;
  animation: auth-drift 38s ease-in-out infinite;
}

/* =========================================
   AUTH CARD (shared styles)
   ========================================= */

.login-container,
.forgot-password-container,
.reset-password-container {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 2.4rem 2.6rem 2.6rem;
  border-radius: var(--dt-radius-lg);

  background: radial-gradient(circle at top left, #f8fbfb, #e3f1ee);
  box-shadow: var(--dt-shadow-soft);

  text-align: left;
  color: var(--dt-ink);
  overflow: hidden;
}

/* gradient accent ring inside the card */
.login-container::before,
.forgot-password-container::before,
.reset-password-container::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--dt-mist), var(--dt-emerald));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.8;
  pointer-events: none;
}

/* subtle inner glow */
.login-container::after,
.forgot-password-container::after,
.reset-password-container::after {
  content: "";
  position: absolute;
  inset: 40% -30% -40%;
  background: radial-gradient(
    circle,
    rgba(230, 244, 241, 0.7) 0,
    transparent 55%
  );
  opacity: 0.5;
  pointer-events: none;
}

/* =========================================
   HEADINGS & TEXT
   ========================================= */

.login-container h2,
.forgot-password-container h2,
.reset-password-container h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 0.4rem;
  background: linear-gradient(120deg, var(--dt-teal), var(--dt-emerald));
  -webkit-background-clip: text;
  color: transparent;
}

.login-subtitle,
.forgot-password-subtitle,
.reset-password-subtitle {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  opacity: 0.78;
}

/* =========================================
   FORM ELEMENTS
   ========================================= */

.login-container input,
.forgot-password-container input,
.reset-password-container input {
  width: 100%;
  padding: 0.85rem 1rem;
  margin: 0 0 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(50, 113, 121, 0.25);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.22s ease, box-shadow 0.22s ease,
    background-color 0.22s ease, transform 0.08s ease;
}

.login-container input::placeholder,
.forgot-password-container input::placeholder,
.reset-password-container input::placeholder {
  font-size: 0.86rem;
  opacity: 0.7;
}

/* focus with gentle glow */
.login-container input:focus,
.forgot-password-container input:focus,
.reset-password-container input:focus {
  border-color: var(--dt-emerald);
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(62, 140, 120, 0.25),
    0 18px 40px rgba(5, 28, 32, 0.18);
  transform: translateY(-1px);
}

/* =========================================
   BUTTONS
   ========================================= */

.login-container button,
.forgot-password-container button,
.reset-password-container button {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #ffffff;
  background-image: linear-gradient(120deg, var(--dt-teal), var(--dt-emerald));
  box-shadow: 0 16px 36px rgba(5, 28, 32, 0.34);
  transition: transform 0.15s ease-out, box-shadow 0.22s ease-out,
    filter 0.22s ease-out;
}

.login-container button:hover,
.forgot-password-container button:hover,
.reset-password-container button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(5, 28, 32, 0.42);
  filter: brightness(1.03);
}

.login-container button:active,
.forgot-password-container button:active,
.reset-password-container button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 24px rgba(5, 28, 32, 0.28);
}

/* =========================================
   LINKS (Forgot password)
   ========================================= */

.forgot-password {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  color: var(--dt-teal);
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease, text-decoration 0.2s ease;
}

.forgot-password:hover {
  color: var(--dt-emerald);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================
   DEALER SERVICES – SPECIAL SECTION
   ========================================= */

.dealer-services {
  max-width: 1000px;
  margin: 3rem auto 4rem;
  padding: 3rem 3.2rem;
  border-radius: var(--dt-radius-lg);
  position: relative;
  overflow: hidden;
  color: #ffffff;

  background-color: var(--dt-teal);
  background-image: radial-gradient(
      circle at 0% 0%,
      rgba(230, 244, 241, 0.85) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(62, 140, 120, 0.7) 0,
      transparent 60%
    ),
    linear-gradient(135deg, rgba(50, 113, 121, 0.96), rgba(62, 140, 120, 0.92));
  background-blend-mode: screen, soft-light, normal;
  box-shadow: var(--dt-shadow-soft);
}

/* moving grid texture over services */
.dealer-services::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: linear-gradient(
      rgba(230, 244, 241, 0.16) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(230, 244, 241, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.65;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: services-grid 30s linear infinite;
}

/* top glow arc */
.dealer-services::after {
  content: "";
  position: absolute;
  inset: -10% -40% 55%;
  background: radial-gradient(
    circle,
    rgba(230, 244, 241, 0.85) 0,
    transparent 60%
  );
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
}

.dealer-services h1 {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 2rem;
}

.dealer-services h1 span {
  display: inline-block;
  background: linear-gradient(120deg, var(--dt-mist), #ffffff);
  -webkit-background-clip: text;
  color: transparent;
}

/* Generic list layout – adapts if you use ul/li inside dealer-services */
.dealer-services ul {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}

.dealer-services li {
  background: rgba(7, 28, 31, 0.42);
  border-radius: var(--dt-radius-md);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(230, 244, 241, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Logout button */
.logout-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #ffffff;
  background-image: linear-gradient(120deg, var(--dt-teal), var(--dt-emerald));
  box-shadow: 0 16px 34px rgba(5, 28, 32, 0.4);
  cursor: pointer;
  transition: transform 0.14s ease-out, box-shadow 0.22s ease-out,
    filter 0.22s ease-out;
}

.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(5, 28, 32, 0.5);
  filter: brightness(1.03);
}

.logout-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 26px rgba(5, 28, 32, 0.36);
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes auth-orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes auth-drift {
  0% {
    transform: translate3d(-8%, -6%, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(6%, 5%, 0) rotate(6deg);
  }
  100% {
    transform: translate3d(-8%, -6%, 0) rotate(0deg);
  }
}

@keyframes services-grid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-26px, -26px, 0);
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
  .login-body {
    padding: 2.2rem 1.1rem;
  }

  .login-container,
  .forgot-password-container,
  .reset-password-container {
    padding: 2rem 1.6rem 2.2rem;
    border-radius: 20px;
  }

  .dealer-services {
    margin-inline: 1.1rem;
    padding: 2.4rem 1.6rem 2.6rem;
    border-radius: 20px;
  }

  .dealer-services h1 {
    font-size: 1.5rem;
    letter-spacing: 0.14em;
  }
}
