/* ============================================================
   Oreon Network — Authentication UI (matches final oreon/auth.css)
   ============================================================ */

.oreon-auth-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 80px;
}

.oreon-auth-page::before {
  content: "";
  position: absolute;
  inset: -4%;
  background: url("/images/oreon-plan-banner.png") center / cover no-repeat;
  opacity: 0.36;
  filter: saturate(1.15);
  pointer-events: none;
  animation: oreon-auth-bg-drift 18s ease-in-out infinite alternate;
}

.oreon-auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(107, 90, 224, 0.12), #0a0a0c 74%);
  pointer-events: none;
}

@keyframes oreon-auth-bg-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(0, -10px, 0); }
}

.oreon-auth-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 16px clamp(24px, 5vw, 52px) 40px;
  border-radius: 16px;
  background: rgba(18, 12, 38, 0.84);
  border: 1px solid rgba(168, 85, 247, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65), 0 0 40px -15px rgba(139, 92, 246, 0.22);
  color: #f0eefc;
  animation: oreon-auth-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.oreon-auth-card-wide {
  width: min(640px, 100%);
}

@keyframes oreon-auth-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
}

.oreon-auth-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 28px 0 30px;
}

.oreon-auth-head img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.oreon-auth-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 20px 0 0;
  letter-spacing: -0.02em;
}

.oreon-auth-sub {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #a8a3c6;
  line-height: 1.5;
}

.oreon-auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.oreon-auth-col-2 {
  grid-column: 1 / -1;
}

@media (max-width: 580px) {
  .oreon-auth-grid-2 {
    grid-template-columns: 1fr;
  }
}

.oreon-auth-banner {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 16px;
}

.oreon-auth-banner-err {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.oreon-auth-banner-ok {
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.35);
  color: #3ecf8e;
}

.oreon-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.oreon-auth-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #f0eefc;
  transition: color 0.2s ease;
}

.oreon-auth-field:focus-within label {
  color: #a855f7;
}

.oreon-auth-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.oreon-auth-field input[type="text"],
.oreon-auth-field input[type="email"],
.oreon-auth-field input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(14, 10, 30, 0.95);
  color: #f0eefc;
  caret-color: #a855f7;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.oreon-auth-pw-wrap input {
  padding-right: 42px;
}

.oreon-auth-field input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.35);
}

.oreon-auth-field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.oreon-auth-field-err {
  font-size: 12.5px;
  color: #fb7185;
  margin: 2px 0 0;
}

.oreon-auth-pw-toggle {
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #8c86ad;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.18s ease;
}

.oreon-auth-pw-toggle:hover {
  color: #ffffff;
}

.oreon-auth-pw-toggle svg {
  width: 17px;
  height: 17px;
}

.oreon-auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  font-size: 13.5px;
}

.oreon-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a8a3c6;
  cursor: pointer;
}

.oreon-auth-check input {
  accent-color: #8b5cf6;
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.oreon-auth-link {
  color: #a99cf2;
  font-weight: 600;
  text-decoration: none;
}

.oreon-auth-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.oreon-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.38);
  transition: all 0.2s ease;
}

.oreon-auth-submit:hover {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

.oreon-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.oreon-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
}

.oreon-auth-divider span {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(27, 22, 54, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.22);
  font-size: 12px;
  font-weight: 500;
  color: #a8a3c6;
  white-space: nowrap;
}

.oreon-auth-divider::before,
.oreon-auth-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.2);
}

.oreon-auth-oauth-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.oreon-auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  background: rgba(14, 10, 30, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #f0eefc;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.oreon-auth-google-btn:hover {
  border-color: #a855f7;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.25);
}

.oreon-auth-google-btn svg,
.oreon-auth-google-btn img {
  width: 18px;
  height: 18px;
}

.oreon-auth-foot-note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: #a8a3c6;
}

/* 2FA OTP Inputs */
.oreon-otp-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.oreon-otp-input {
  width: 42px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(14, 10, 30, 0.95);
  color: #ffffff;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oreon-otp-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.35);
}
