:root {
  --auth-bg: #f5f7fb;
  --auth-card: #ffffff;
  --auth-primary: #1a73e8;
  --auth-primary-2: #0b57d0;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-border: #d9e1ee;
  --auth-radius: 20px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.auth-body {
  margin: 0;
  font-family: 'Inter', 'Poppins', sans-serif;
  background: linear-gradient(180deg, #edf2fb 0%, var(--auth-bg) 100%);
  color: var(--auth-text);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(1120px, 100%);
  min-height: 720px;
  background: var(--auth-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(16, 24, 40, 0.15);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-form-panel {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

.auth-brand .logo-dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffb648 0%, #0b57d0 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

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

.auth-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  margin-top: 8px;
  margin-bottom: 24px;
  color: var(--auth-muted);
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-social {
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  padding: 10px 12px;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #8ea1ba;
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  border-top: 1px solid #e4e9f2;
}

.field {
  margin-bottom: 14px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8ca0b9;
}

.input-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #8ca0b9;
}

.auth-input {
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: 12px 40px 12px 42px;
  width: 100%;
}

.auth-input:focus {
  outline: none;
  border-color: #7eb3ff;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.auth-link {
  color: #0b57d0;
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--auth-primary) 0%, var(--auth-primary-2) 100%);
  box-shadow: 0 12px 24px rgba(26, 115, 232, 0.26);
  transition: transform .18s ease, filter .18s ease;
}
.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--auth-muted);
}

.auth-alert {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: .93rem;
}
.auth-alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert.success { background: #ecfdf3; color: #047857; border: 1px solid #bbf7d0; word-break: break-word; }

.auth-visual {
  position: relative;
  background: linear-gradient(145deg, #1a73e8 0%, #0b57d0 100%);
  color: #fff;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.15), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.12);
}

.glow-ring {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
}

.auth-ill-frame {
  position: relative;
  width: min(360px, 78%);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 18px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.auth-ill-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #fff;
}

.float-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #0b57d0;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}
.float-icon.i1 { top: 190px; left: 70px; }
.float-icon.i2 { top: 280px; left: 56px; }
.float-icon.i3 { top: 360px; left: 96px; }

.visual-copy {
  position: absolute;
  bottom: 58px;
  text-align: center;
  max-width: 360px;
  z-index: 2;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(7, 28, 84, 0.18) 0%, rgba(7, 28, 84, 0.42) 100%);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 30px rgba(5, 18, 58, 0.18);
}
.visual-copy h3 {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 8px 22px rgba(4, 16, 49, 0.38);
}
.visual-copy p {
  margin: 0;
  color: rgba(255,255,255,.96);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-credit {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 18px;
  z-index: 2;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 8px 20px rgba(4, 16, 49, 0.3);
}

@media (max-width: 991px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-visual {
    display: none;
  }
  .auth-form-panel {
    padding: 34px 24px;
  }
  .auth-title { font-size: 1.7rem; }
  .auth-credit { display: none; }
}
