/* =====================================================================
   login.css: Login page styles
   ===================================================================== */

.login-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(420px, 0.85fr);
  background: #eef3f8;
  color: #0f172a;
}

.login-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 20, 55, 0.58), rgba(3, 20, 55, 0.34)),
    url('/static/images/login-bg-object-storage.png') 32% center / cover no-repeat;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 20, 55, 0.76), rgba(3, 20, 55, 0.42) 58%, rgba(3, 20, 55, 0.20)),
    radial-gradient(circle at 18% 34%, rgba(255, 128, 18, 0.16), transparent 34%);
  pointer-events: none;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(3, 20, 55, 0.64));
  pointer-events: none;
}

.login-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  background: rgba(3, 20, 55, 0.10);
}

.login-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #ffffff;
}

.login-brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 345px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.login-brand-sub {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
  margin-left: 1px;
}

.login-hero-copy {
  max-width: 500px;
  color: #ffffff;
  margin-bottom: 52px;
}

.login-hero-copy .eyebrow {
  color: #ffb14a;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.login-hero-copy h1 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
}

.login-hero-copy p {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

.login-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.login-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.login-hero-footer {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
    #f8fafc;
}

.login-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.13);
  padding: 38px;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #ff8a18, #2563eb, #0b5abf);
}

.login-card-head { margin-bottom: 26px; }

.login-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.login-card h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: #0f172a;
}

.login-card-desc {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
}

.login-alert {
  padding: 13px 14px;
  border-radius: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  margin-bottom: 18px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  height: 48px;
  border-radius: 15px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #2563eb, #0b5abf);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(37, 99, 235, 0.30);
}

.login-meta {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

.login-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.login-meta-row code {
  color: #1e3a8a;
  background: #eff6ff;
  border-radius: 8px;
  padding: 2px 6px;
}

@media (max-width: 980px) {
  .login-v2 { grid-template-columns: 1fr; }
  .login-hero { min-height: 360px; }
  .login-hero-content { min-height: 360px; padding: 30px; }
  .login-hero-copy h1 { font-size: 34px; }
  .login-panel { min-height: auto; padding: 34px 22px; }
}

@media (max-width: 520px) {
  .login-card { padding: 24px; border-radius: 22px; }
  .login-hero-copy h1 { font-size: 30px; }
  .login-brand-logo { height: 45px; max-width: 285px; }
  .login-meta-row { display: grid; gap: 4px; }
}
