:root {
  --at-magenta: #c2185b;
  --at-purple: #7c3aed;
  --at-navy: #1e1b4b;
  --at-deep: #1a1040;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  background: #f6f3fb;
}

.login-hero {
  position: relative;
  flex: 1.15;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(225, 29, 116, 0.45), transparent 55%),
    radial-gradient(900px 500px at 90% 80%, rgba(124, 58, 237, 0.5), transparent 50%),
    linear-gradient(160deg, #1a1040 0%, #4a1d6e 45%, #9d174d 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1040;
}

.hero-media picture,
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 16, 64, 0.42) 0%, rgba(122, 24, 91, 0.38) 46%, rgba(26, 16, 64, 0.82) 100%),
    linear-gradient(90deg, rgba(26, 16, 64, 0.28), transparent 58%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo { display: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 52px 56px;
  max-width: 620px;
}

.hero-logo {
  width: 280px;
  max-width: 78%;
  height: auto;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: #f9a8d4;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}

.hero-tagline {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 28px;
  max-width: 460px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: #e9d5ff;
}

.login-panel {
  width: min(480px, 42vw);
  min-width: 380px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 44px 40px;
  box-shadow: -18px 0 40px rgba(26, 16, 64, 0.08);
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.panel-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
}

.login-title {
  font-weight: 800;
  font-size: 26px;
  color: var(--at-deep);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.login-subtitle {
  color: #5b5b6b;
  font-size: 14px;
  margin-bottom: 28px;
}

.login-card .form-label {
  font-weight: 600;
  color: #334155;
  font-size: 13px;
  margin-bottom: 6px;
}

.login-card .input-group-text {
  background: #f7f4fb;
  border: 1.5px solid #e4dcf3;
  color: var(--at-magenta);
  border-right: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.premium-input {
  border: 1.5px solid #e4dcf3;
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  font-size: 14px;
  background: #fbf9fe;
}

.premium-input:focus {
  border-color: var(--at-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
  background: #fff;
}

.premium-select {
  border: 1.5px solid #e4dcf3;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fbf9fe;
  width: 100%;
}

.premium-select:focus {
  border-color: var(--at-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
  background: #fff;
  outline: none;
}

.password-toggle {
  background: #f7f4fb;
  border: 1.5px solid #e4dcf3;
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #6b5b73;
  cursor: pointer;
}

.btn-premium {
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--at-magenta), var(--at-purple));
  box-shadow: 0 8px 20px rgba(194, 24, 91, 0.28);
}

.btn-premium:hover { color: #fff; }

.btn-premium .spinner-border {
  width: 18px;
  height: 18px;
  display: none;
}

.btn-premium.loading .spinner-border { display: inline-block; }
.btn-premium.loading .btn-text { margin-left: 8px; }

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
}

.login-card .form-check-input:checked {
  background-color: var(--at-magenta);
  border-color: var(--at-magenta);
}

.forgot-link {
  color: var(--at-magenta);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.switch-login {
  display: none !important;
}

.tick-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #eee6f5;
}

.tick {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5b4d66;
  font-size: 12.5px;
  font-weight: 500;
}

.tick svg { color: var(--at-magenta); }

.login-card .text-danger { font-size: 12.5px; }

@media (max-width: 992px) {
  .login-shell { flex-direction: column; }
  .login-hero { min-height: 240px; flex: none; }
  .hero-photo { display: none; }
  .hero-content { padding: 28px 24px; justify-content: flex-end; }
  .hero-title { font-size: 24px; }
  .hero-tagline, .hero-meta { display: none; }
  .login-panel {
    width: 100%;
    min-width: 0;
    padding: 32px 22px 40px;
    box-shadow: none;
  }
  .panel-logo { width: 168px; }
}
