/* TTMS Care split-screen login */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@600;700;800&display=swap");

html.ttms-login,
body.ttms-login {
  height: 100%;
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: #f4f6f8 !important;
  background-image: none !important;
}

body.ttms-login .page,
body.ttms-login .page-center {
  background: none !important;
  background-image: none !important;
  min-height: 100vh;
  display: block !important;
  padding: 0 !important;
}

body.ttms-login .container-tight {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ttms-login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.ttms-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  color: #fff;
  background:
    radial-gradient(circle at 28% 42%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.2) 16%, transparent 17%),
    radial-gradient(circle at 52% 55%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.12) 26%, transparent 27%),
    linear-gradient(160deg, #007ce1 0%, #005299 100%);
  overflow: hidden;
}

.ttms-login-brand-top {
  display: flex;
  align-items: center;
  z-index: 1;
}

.ttms-login-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ttms-login-logo img,
.ttms-login-logo .navbar-brand-image,
.ttms-login-brand-top img,
.ttms-login-brand-top .navbar-brand-image {
  height: 52px !important;
  width: auto !important;
  max-width: 280px !important;
  object-fit: contain !important;
  display: block;
}

.ttms-login-brand-mid {
  max-width: 36rem;
  padding: 2rem 0;
  z-index: 1;
}

.ttms-login-brand-mid h1 {
  margin: 0 0 1rem;
  font-family: Outfit, "DM Sans", sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

.ttms-login-brand-mid p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

.ttms-login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.ttms-login-stats strong {
  display: block;
  font-family: Outfit, "DM Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
}

.ttms-login-stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.ttms-login-brand-foot {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  z-index: 1;
}

.ttms-login-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #f4f6f8;
}

.ttms-login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  animation: ttms-card-in 0.45s ease-out;
}

@keyframes ttms-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ttms-login-card h2 {
  margin: 0;
  font-family: Outfit, "DM Sans", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
}

.ttms-login-card .ttms-login-sub {
  margin: 0.4rem 0 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
}

.ttms-login-card .alert {
  margin-bottom: 1rem;
}

.ttms-login-card .form-label {
  font-weight: 600;
  color: #334155;
}

.ttms-login-card .form-control {
  min-height: 44px;
}

.ttms-login-card .btn-primary {
  background-color: #007ce1 !important;
  border-color: #007ce1 !important;
  min-height: 46px;
  font-weight: 600;
}

.ttms-login-card .btn-primary:hover,
.ttms-login-card .btn-primary:focus {
  background-color: #0066b8 !important;
  border-color: #0066b8 !important;
}

.ttms-login-card .form-check-input:checked {
  background-color: #007ce1;
  border-color: #007ce1;
}

.ttms-login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ttms-login-divider::before,
.ttms-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.ttms-login-social .btn {
  min-height: 44px;
}

@media (max-width: 991.98px) {
  .ttms-login-shell {
    grid-template-columns: 1fr;
  }

  .ttms-login-brand {
    min-height: auto;
    padding: 1.75rem 1.5rem;
  }

  .ttms-login-logo img,
  .ttms-login-logo .navbar-brand-image {
    height: 44px !important;
    max-width: 220px !important;
  }

  .ttms-login-brand-mid {
    padding: 1.25rem 0;
  }

  .ttms-login-stats {
    margin-top: 1.5rem;
  }

  .ttms-login-auth {
    padding: 1.5rem 1rem 2rem;
  }
}
