.od-auth[hidden] { display: none !important; }

.od-auth {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.od-auth__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 40, 0.55);
  backdrop-filter: blur(4px);
}

.od-auth__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 24px 60px rgba(40, 20, 80, 0.28);
  color: #1f2a37;
}

.od-auth__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #8a97a8;
}

.od-auth__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.od-auth__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%),
    linear-gradient(135deg, #6d5efc, #c44dff);
}

.od-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: #f3f5f9;
  padding: 0.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.od-auth__tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0.55rem;
  font-weight: 600;
  cursor: pointer;
  color: #6b7a90;
}

.od-auth__tab.is-active {
  background: #fff;
  color: #1f2a37;
  box-shadow: 0 4px 12px rgba(31, 42, 55, 0.08);
}

.od-auth__form h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.od-auth__form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #5b6b7c;
}

.od-auth__form input {
  border: 1px solid rgba(31, 42, 55, 0.14);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  color: #1f2a37;
}

.od-auth__captcha {
  display: grid;
  grid-template-columns: 120px auto 1fr;
  gap: 0.45rem;
  align-items: center;
}

.od-auth__captcha-img {
  border-radius: 8px;
  border: 1px solid rgba(31, 42, 55, 0.1);
  background: #f5f7fb;
  height: 40px;
  width: 120px;
}

.od-auth__captcha-refresh {
  border: 0;
  background: #eef2f7;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  font-size: 0.75rem;
}

.od-auth__code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.od-auth__submit {
  width: 100%;
  margin-top: 0.35rem;
}

.od-auth__social {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.od-auth__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 55, 0.12);
  background: #fff;
  color: #1f2a37;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.od-auth__social-btn:hover {
  background: #f8fafc;
  border-color: rgba(109, 94, 252, 0.35);
  color: #1f2a37;
  transform: translateY(-1px);
}

.od-auth__social-btn--x {
  background: #0f1419;
  border-color: #0f1419;
  color: #fff;
}

.od-auth__social-btn--x:hover {
  background: #1a1f26;
  border-color: #1a1f26;
  color: #fff;
}

.od-auth__social-note {
  margin: 0;
  color: #8a97a8;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.35;
}

.od-auth__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.55rem;
  color: #94a3b8;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.od-auth__divider::before,
.od-auth__divider::after {
  content: "";
  height: 1px;
  background: rgba(31, 42, 55, 0.1);
}

.od-auth__msg {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.85rem;
}

.od-auth__msg.is-ok {
  background: #ecfdf5;
  color: #047857;
}

body.od-auth-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .od-auth {
    padding: 0.65rem;
    align-items: end;
  }

  .od-auth__dialog {
    width: 100%;
    max-height: min(92vh, 720px);
    overflow: auto;
    border-radius: 18px 18px 14px 14px;
    padding: 1.1rem 1rem 1.15rem;
  }

  .od-auth__captcha {
    grid-template-columns: 120px auto;
  }

  .od-auth__captcha input {
    grid-column: 1 / -1;
  }

  .od-auth__social-btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
  }
}
