/* Auth pages – Amrutwel theme #272350 */
:root {
  --auth-primary: #272350;
  --auth-primary-dark: #1e1c42;
  --auth-primary-light: #3d3870;
  --auth-accent: #a3140e;
  --auth-text: #1a1a2e;
  --auth-muted: #6b7280;
  --auth-border: #e5e7eb;
  --auth-input-bg: #f9fafb;
  --auth-radius: 14px;
  --auth-shadow: 0 20px 50px rgba(39, 35, 80, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--auth-text);
  background: #f4f5fa;
  overflow-x: hidden;
}

.auth-page__wrapper {
  display: flex;
  min-height: 100vh;
}

/* Brand panel */
.auth-page__panel--brand {
  display: none;
  flex: 0 0 42%;
  max-width: 42%;
  background: linear-gradient(160deg, var(--auth-primary) 0%, var(--auth-primary-dark) 50%, var(--auth-primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 3rem 2.5rem;
  align-items: center;
  justify-content: center;
}

.auth-page__panel--brand::before,
.auth-page__panel--brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.auth-page__panel--brand::before {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
}

.auth-page__panel--brand::after {
  width: 220px;
  height: 220px;
  bottom: -40px;
  left: -50px;
}

.auth-page__brand {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 360px;
}

.auth-page__brand-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 1.75rem;
  filter: brightness(1.05);
}

.auth-page__brand-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.auth-page__brand-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.auth-page__brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.auth-page__brand-badge i {
  font-size: 0.9rem;
}

/* Form panel */
.auth-page__panel--form {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, #f8f9fc 0%, #eef0f8 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  border: 1px solid rgba(39, 35, 80, 0.08);
  padding: 2rem 2rem 1.75rem;
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card__logo img {
  max-width: 240px;
  width: 100%;
  height: auto;
}

.auth-card__intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card__intro h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-primary);
  margin: 0 0 0.4rem;
}

.auth-card__intro p {
  font-size: 0.95rem;
  color: var(--auth-muted);
  line-height: 1.6;
  margin: 0;
}

.auth-card__form .form-label,
.auth-card__form label.form-label {
  font-size: 0.875rem !important;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 0.4rem;
}

.auth-card__form .form-control {
  border: 1.5px solid var(--auth-border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: var(--auth-input-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-card__form .form-control:focus {
  border-color: var(--auth-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 35, 80, 0.12);
}

.auth-card__form .form-control-lg {
  min-height: 48px;
}

.auth-card__form .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.auth-card__form .input-group-text {
  border: 1.5px solid var(--auth-border);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--auth-input-bg);
  color: var(--auth-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.auth-card__form .input-group-text:hover {
  color: var(--auth-primary);
  background: #fff;
}

.auth-card__form .input-group:focus-within .form-control,
.auth-card__form .input-group:focus-within .input-group-text {
  border-color: var(--auth-primary);
  background: #fff;
}

.auth-card__form .input-group:focus-within .form-control {
  box-shadow: 0 0 0 3px rgba(39, 35, 80, 0.12);
}

.auth-card__form .form-check-input {
  border-color: #c5c9d4;
  width: 1.05em;
  height: 1.05em;
}

.auth-card__form .form-check-input:checked {
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
}

.auth-card__form .form-check-label {
  font-size: 0.875rem;
  color: var(--auth-muted);
}

.auth-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--auth-primary) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-card__link:hover {
  color: var(--auth-primary-light) !important;
  text-decoration: underline;
}

.auth-card__btn-primary {
  width: 100%;
  min-height: 48px;
  border: none !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-light) 100%) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(39, 35, 80, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-card__btn-primary:hover,
.auth-card__btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(39, 35, 80, 0.32);
  filter: brightness(1.05);
  color: #fff !important;
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0 0.75rem;
  color: var(--auth-muted);
  font-size: 0.8rem;
}

.auth-card__divider::before,
.auth-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-card__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--auth-border);
  background: #fff;
  color: var(--auth-primary) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card__btn-secondary:hover {
  border-color: var(--auth-primary);
  background: rgba(39, 35, 80, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 35, 80, 0.1);
  color: var(--auth-primary) !important;
}

.auth-card__errors .mt-2,
.auth-card .mt-2 {
  list-style: none !important;
  margin: 0.5rem 0 0 !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  text-align: left;
}

.auth-card__status {
  font-size: 0.875rem;
  color: #15803d;
  text-align: center;
  padding: 0.6rem 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.auth-page__copyright {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--auth-muted);
  max-width: 440px;
  line-height: 1.5;
}

.auth-page__copyright strong {
  color: var(--auth-primary);
  font-weight: 600;
}

.auth-card__required {
  color: #dc2626;
  margin-left: 2px;
}

@media (min-width: 992px) {
  .auth-page__panel--brand {
    display: flex;
  }

  .auth-page__panel--form {
    padding: 2.5rem;
  }

  .auth-card {
    padding: 2.25rem 2.5rem 2rem;
  }
}

@media (max-width: 575px) {
  .auth-card {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 12px;
  }

  .auth-card__logo img {
    max-width: 200px;
  }

  .auth-card__intro h1 {
    font-size: 1.3rem;
  }
}
