:root {
  --bg-top: #f2f7ff;
  --bg-bottom: #e8efff;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.56);
  --text-main: #0d1a2a;
  --text-subtle: #526074;
  --brand: #3f5cff;
  --brand-2: #6f7bff;
  --danger-bg: #ffe8ea;
  --danger-text: #991b1b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Inter", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 600px at 10% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(900px 500px at 100% 10%, #dfe8ff 0%, rgba(223, 232, 255, 0) 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.auth-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 18px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #101828;
}

.auth-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 700;
  overflow: hidden;
}

.auth-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
}

.glass-card {
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.09);
  backdrop-filter: blur(10px);
}

.hero-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.08;
  margin: 0;
}

.hero-sub {
  margin: 0;
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.5;
}

.hero-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #2f3e59;
  background: rgba(96, 128, 255, 0.14);
}

.fox-box {
  margin-top: 8px;
  border-radius: 22px;
  border: 1px solid rgba(63, 92, 255, 0.16);
  background: linear-gradient(145deg, #eef3ff, #f8fbff);
  padding: 16px;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
}

.fox-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffd0b2, #ffb780);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(214, 130, 80, 0.45);
}

.fox-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fox-title {
  margin: 0 0 4px;
  font-size: 16px;
}

.fox-sub {
  margin: 0;
  color: var(--text-subtle);
  font-size: 13px;
}

.hero-list {
  margin: 0;
  padding-left: 18px;
  color: #2f3d52;
  font-size: 14px;
  line-height: 1.5;
}

.form-panel {
  padding: 28px 24px;
}

.form-title {
  margin: 2px 0 10px;
  font-size: 28px;
}

.form-sub {
  margin: 0 0 20px;
  color: var(--text-subtle);
  font-size: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #2f3d52;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid #d5deee;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.field input:focus,
.field select:focus {
  border-color: #7a8cff;
  box-shadow: 0 0 0 3px rgba(63, 92, 255, 0.14);
}

.field-hint {
  margin-top: 5px;
  color: #607188;
  font-size: 12px;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
}

.btn-secondary {
  border: 1px solid #c7d4ff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: #2f4ad4;
  background: #edf2ff;
  cursor: pointer;
}

.alert-danger,
.alert-info {
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 13px;
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.alert-info {
  background: #e8f2ff;
  color: #1e4f7d;
}

.muted-link {
  margin-top: 12px;
  text-align: center;
  color: #607188;
  font-size: 13px;
}

.muted-link a {
  color: #2f4ad4;
  text-decoration: none;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 920px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

.oops-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
}

.oops-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 35, 0.56);
}

.oops-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 560px);
  border-radius: 16px;
  border: 1px solid #d5deee;
  background: #fff;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
  padding: 18px 18px 16px;
}

.oops-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef2ff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.oops-modal-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
}

.oops-modal-mascot {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  animation: auth-anyuta-thinking 0.9s ease-in-out infinite;
}

@keyframes auth-anyuta-thinking {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-2px) rotate(-5deg) scale(1.03); }
  50% { transform: translateY(0) rotate(0deg) scale(1); }
  75% { transform: translateY(-2px) rotate(5deg) scale(1.03); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

#oops-modal-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

#oops-modal-text {
  margin: 0;
  color: #526074;
  line-height: 1.45;
}
