/* Komenco ERP — auth pages (wine theme) */
:root {
  --auth-wine: #722f37;
  --auth-wine-dark: #5c262e;
  --auth-wine-darker: #2d1218;
  --auth-wine-light: #9b4a54;
  --auth-gold: #c9a227;
  --auth-gold-soft: #f5e8c4;
  --auth-sage: #5c7a6b;
  --auth-cream: #faf7f4;
  --auth-card-shadow: 0 24px 48px rgba(45, 18, 24, 0.12), 0 8px 16px rgba(45, 18, 24, 0.06);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--auth-cream);
}

.auth-brand-panel {
  flex: 1 1 48%;
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--auth-wine-darker) 0%, var(--auth-wine) 45%, var(--auth-wine-dark) 100%);
  color: #fff;
  padding: 3rem 2.5rem;
}

@media (min-width: 992px) {
  .auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201, 162, 39, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(92, 122, 107, 0.22) 0%, transparent 50%);
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 26rem;
}

.auth-logo-wrap {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.5rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-wrap--hero {
  width: 13rem;
  height: 13rem;
  padding: 1rem;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
}

.auth-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.auth-brand-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-brand-sub {
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.auth-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.85rem;
  opacity: 0.92;
}

.auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
}

.auth-brand-features .bi {
  color: var(--auth-gold);
  font-size: 1rem;
}

.auth-form-panel {
  flex: 1 1 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-mobile-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .auth-mobile-logo {
    display: none;
  }
}

.auth-mobile-logo img {
  height: 7rem;
  width: auto;
  max-width: 85%;
  object-fit: contain;
}

.auth-card {
  background: #fff;
  border: 1px solid rgba(114, 47, 55, 0.08);
  border-radius: 1rem;
  box-shadow: var(--auth-card-shadow);
  overflow: hidden;
}

.auth-card-head {
  padding: 1.5rem 1.75rem 0.5rem;
}

.auth-card-head h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--auth-wine-darker);
  margin: 0 0 0.25rem;
}

.auth-card-head p {
  font-size: 0.875rem;
  color: #6b5d62;
  margin: 0;
}

.auth-card-body {
  padding: 1rem 1.75rem 1.75rem;
}

.auth-form .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-wine-darker);
}

.auth-form .form-control {
  border-radius: 0.5rem;
  border-color: #e8dedf;
  padding: 0.6rem 0.85rem;
}

.auth-form .form-control:focus {
  border-color: var(--auth-wine-light);
  box-shadow: 0 0 0 0.2rem rgba(114, 47, 55, 0.15);
}

.auth-input-group {
  position: relative;
}

.auth-input-group .form-control {
  padding-left: 2.5rem;
}

.auth-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-wine-light);
  font-size: 1rem;
  pointer-events: none;
  z-index: 4;
}

.auth-btn-primary {
  background: linear-gradient(180deg, var(--auth-wine) 0%, var(--auth-wine-dark) 100%);
  border: none;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
}

.auth-btn-primary:hover {
  background: linear-gradient(180deg, var(--auth-wine-light) 0%, var(--auth-wine) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(114, 47, 55, 0.25);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-link {
  color: var(--auth-wine);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  color: var(--auth-wine-dark);
  text-decoration: underline;
}

.auth-footer-note {
  font-size: 0.75rem;
  color: #8a7d81;
  text-align: center;
  margin-top: 1.25rem;
}

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