/* TailAdmin's sign-in look for the server-rendered account pages (Themes/LeptonXLite/Layouts/Account.cshtml).
   Plain CSS on top of the theme's Bootstrap: the host has no Tailwind build. Colours are TailAdmin's. */

:root {
  --ta-brand-25: #f2f7ff;
  --ta-brand-50: #ecf3ff;
  --ta-brand-300: #9cb9ff;
  --ta-brand-500: #465fff;
  --ta-brand-600: #3641f5;
  --ta-brand-950: #161950;
  --ta-gray-50: #f9fafb;
  --ta-gray-200: #e4e7ec;
  --ta-gray-300: #d0d5dd;
  --ta-gray-400: #98a2b3;
  --ta-gray-500: #667085;
  --ta-gray-700: #344054;
  --ta-gray-800: #1d2939;
  --ta-gray-900: #101828;
  --ta-gray-950: #0c111d;
  --ta-shadow-xs: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);

  --ta-bg: #ffffff;
  --ta-text: var(--ta-gray-800);
  --ta-muted: var(--ta-gray-500);
  --ta-border: var(--ta-gray-300);
  --ta-input-bg: transparent;
}

html.dark {
  --ta-bg: var(--ta-gray-900);
  --ta-text: rgba(255, 255, 255, 0.9);
  --ta-muted: var(--ta-gray-400);
  --ta-border: var(--ta-gray-700);
  --ta-input-bg: var(--ta-gray-900);
}

body.ta-auth {
  margin: 0;
  min-height: 100vh;
  background: var(--ta-bg);
  color: var(--ta-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.ta-auth-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- form side ---------------------------------------------------------------------------- */

.ta-auth-form-side {
  display: flex;
  flex: 1 1 50%;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

.ta-auth-form {
  width: 100%;
  max-width: 28rem;
}

.ta-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.ta-auth-brand:hover {
  color: inherit;
}

.ta-auth-brand-mobile {
  margin-bottom: 2rem;
}

.ta-auth-logo {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--ta-brand-500);
  color: #fff;
}

.ta-auth-logo-lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  font-size: 1.5rem;
}

.ta-auth-tenant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ta-border);
  border-radius: 0.75rem;
}

.ta-auth-tenant-label {
  display: block;
  color: var(--ta-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ta-auth-tenant-name {
  font-weight: 500;
}

.ta-auth-tenant-switch {
  color: var(--ta-brand-500);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

/* The account module renders each page inside a card: flatten it into the page. */
.ta-auth .card {
  border: 0;
  background: transparent;
  box-shadow: none !important;
  margin: 0 !important;
}

.ta-auth .card-body {
  padding: 0 !important;
}

.ta-auth h4,
.ta-auth .card-title {
  margin-bottom: 0.5rem;
  color: var(--ta-text);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 2.375rem;
}

.ta-auth .text-muted,
.ta-auth strong {
  color: var(--ta-muted) !important;
  font-size: 0.875rem;
  font-weight: 400;
}

.ta-auth a {
  color: var(--ta-brand-500);
}

.ta-auth a:hover {
  color: var(--ta-brand-600);
}

.ta-auth .form-label {
  margin-bottom: 0.375rem;
  color: var(--ta-gray-700);
  font-size: 0.875rem;
  font-weight: 500;
}

html.dark .ta-auth .form-label {
  color: var(--ta-gray-400);
}

.ta-auth .form-control,
.ta-auth .form-select {
  height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--ta-border);
  border-radius: 0.5rem;
  background-color: var(--ta-input-bg);
  color: var(--ta-text);
  font-size: 0.875rem;
  box-shadow: var(--ta-shadow-xs);
}

.ta-auth .form-control::placeholder {
  color: var(--ta-gray-400);
}

.ta-auth .form-control:focus,
.ta-auth .form-select:focus {
  border-color: var(--ta-brand-300);
  box-shadow: 0 0 0 3px rgba(70, 95, 255, 0.12);
}

.ta-auth .form-floating > .form-control {
  height: 3.25rem;
}

.ta-auth .form-check-input:checked {
  border-color: var(--ta-brand-500);
  background-color: var(--ta-brand-500);
}

.ta-auth .form-check-label {
  color: var(--ta-gray-700);
  font-size: 0.875rem;
}

html.dark .ta-auth .form-check-label {
  color: var(--ta-gray-400);
}

.ta-auth .btn {
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.ta-auth .btn-lg {
  padding: 0.75rem 1rem;
}

.ta-auth .btn-primary {
  border-color: var(--ta-brand-500);
  background-color: var(--ta-brand-500);
  box-shadow: var(--ta-shadow-xs);
}

.ta-auth .btn-primary:hover,
.ta-auth .btn-primary:focus {
  border-color: var(--ta-brand-600);
  background-color: var(--ta-brand-600);
}

.ta-auth .btn-outline-primary,
.ta-auth .btn-secondary,
.ta-auth .btn-light {
  border: 1px solid var(--ta-border);
  background: transparent;
  color: var(--ta-text);
}

.ta-auth .alert {
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

/* ---- brand side --------------------------------------------------------------------------- */

.ta-auth-brand-side {
  position: relative;
  display: none;
  flex: 1 1 50%;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: var(--ta-brand-950);
  color: #fff;
}

html.dark .ta-auth-brand-side {
  background: rgba(255, 255, 255, 0.05);
}

.ta-auth-brand-content {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  text-align: center;
}

.ta-auth-brand-content .ta-auth-brand {
  flex-direction: column;
  color: #fff;
  font-size: 1.5rem;
}

.ta-auth-brand-content p {
  margin-top: 1rem;
  color: var(--ta-gray-400);
}

/* TailAdmin's corner grids. */
.ta-auth-grid {
  position: absolute;
  width: 100%;
  max-width: 250px;
  height: 254px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom left, #000 30%, transparent 80%);
}

.ta-auth-grid-top {
  top: 0;
  right: 0;
}

.ta-auth-grid-bottom {
  bottom: 0;
  left: 0;
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  .ta-auth-brand-side {
    display: flex;
  }

  .ta-auth-brand-mobile {
    display: none;
  }
}

/* ---- dark mode toggle --------------------------------------------------------------------- */

.ta-auth-theme {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: var(--ta-brand-500);
  color: #fff;
  font-size: 1.25rem;
}

.ta-auth-theme:hover {
  background: var(--ta-brand-600);
}

.ta-icon-light,
html.dark .ta-icon-dark {
  display: none;
}

html.dark .ta-icon-light {
  display: inline;
}

/* LeptonX's own dark rules are more specific than ours; restate the dark inputs. */
html.dark .ta-auth .form-control,
html.dark .ta-auth .form-select,
html.dark .ta-auth .input-group .btn {
  border-color: var(--ta-gray-700);
  background-color: var(--ta-gray-900);
  color: var(--ta-text);
}

html.dark .ta-auth .form-check-input {
  border-color: var(--ta-gray-700);
  background-color: var(--ta-gray-900);
}
