:root {
  --auth-bg-1: #0f172a;
  --auth-bg-2: #1f2a4d;
  --auth-bg-3: #3d3cd6;
  --auth-surface: #ffffff;
  --auth-border: #dbe4f6;
  --auth-text: #1f2937;
  --auth-muted: #6b7280;
  --auth-primary: #6c5ffc;
}

body {
  min-height: 100vh;
  background: radial-gradient(75rem 75rem at 10% 10%, #4f73ff55 0, transparent 60%),
    linear-gradient(140deg, var(--auth-bg-1), var(--auth-bg-2), var(--auth-bg-3));
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10, 20, 40, 0.26);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px rgba(4, 8, 25, .35);
}

.auth-brand {
  color: #eef3ff;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.auth-brand .logo {
  width: min(760px, 92%);
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .28));
}

.auth-brand h2 { font-weight: 800; margin: 14px 0 8px; }
.auth-brand p { color: #cdd7f8; margin: 0; }

.auth-brand-logo-only {
  text-align: center;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
}

.auth-brand-logo-only .logo {
  width: min(760px, 92%) !important;
  max-width: 92% !important;
  max-height: 70vh;
  object-fit: contain;
}

.auth-card {
  background: var(--auth-surface);
  padding: 30px;
}

.auth-card h1 {
  color: var(--auth-text);
  font-weight: 800;
  font-size: 1.7rem;
}

.auth-card .subtitle {
  color: var(--auth-muted);
  margin-bottom: 18px;
}

.form-control, .form-select, .input-group-text {
  border-radius: 12px;
  border-color: var(--auth-border);
}

.input-group > .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: #f9fbff;
}

.form-control:focus, .form-select:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 .2rem rgba(108, 95, 252, .18);
}

.btn-primary {
  background: var(--auth-primary);
  border-color: var(--auth-primary);
  border-radius: 12px;
  font-weight: 700;
}

@media (max-width: 992px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
