/* ==========================================================
   Premium Admin OTP Login — 2026 UI
========================================================== */

.otp-admin-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-bg), #eef4ff 55%, #ffffff);
}

/* ---------- LEFT PANEL ---------- */

.otp-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 60px;
  background:
    radial-gradient(circle at top left, #4f7dff30, transparent 35%),
    radial-gradient(circle at bottom right, #3367e81a, transparent 30%),
    linear-gradient(160deg, #0f172a, #1e293b);
  color: white;
  display: flex;
  align-items: center;
}

.otp-brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.15));
}

.otp-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
}

.otp-brand-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.otp-brand-logo {
  width: 150px;
  margin-bottom: 24px;
}

.otp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.otp-brand-content h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 24px 0;
  font-weight: 700;
}

.otp-brand-content h1 span {
  color: #74a4ff;
}

.otp-brand-content p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-size: 15px;
}

.otp-security-cards {
  margin-top: 50px;
  display: grid;
  gap: 16px;
}

.otp-card-mini {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.otp-card-mini svg {
  color: #78a8ff;
}

.otp-card-mini strong {
  display: block;
  font-size: 14px;
}

.otp-card-mini span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* ---------- RIGHT PANEL ---------- */

.otp-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.otp-login-card {
  width: 100%;
  max-width: 470px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 30px;
  padding: 36px;
  box-shadow:
    0 20px 60px rgba(51, 103, 232, 0.08),
    0 8px 24px rgba(15, 23, 42, 0.05);
}

.otp-header {
  text-align: center;
  margin-bottom: 28px;
}

.otp-logo-mobile img {
  width: 120px;
  margin-bottom: 18px;
}

.otp-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.78rem;
}

.otp-header h2 {
  margin: 20px 0 8px;
  font-size: 2rem;
  color: var(--color-text);
}

.otp-header p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ---------- INPUT ---------- */

.otp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.otp-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.86rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.otp-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 0 18px;
  transition: 0.3s;
  height: 58px;
}

.otp-input svg {
  color: var(--color-text-muted);
}

.otp-input:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(51, 103, 232, 0.1);
}

.otp-input input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--color-text);
  font-size: 0.95rem;
}

.otp-input input::placeholder {
  color: var(--color-text-muted);
}

/* ---------- OTP ---------- */

.otp-box-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.otp-digit-box {
  width: 58px;
  height: 66px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  background: white;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  transition: 0.25s;
}

.otp-digit-box:focus {
  outline: none;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(51, 103, 232, 0.18);
}

/* ---------- INFO ---------- */

.otp-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--color-primary-light);
}

.otp-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--color-primary);
}

.otp-info-text {
  flex: 1;
}

.otp-info-text span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
}

.otp-info-text strong {
  color: var(--color-text);
}

.otp-edit-btn {
  background: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- BUTTONS ---------- */

.otp-submit-btn {
  height: 58px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  color: white;
  font-weight: 600;
  font-size: 0.96rem;
  background: linear-gradient(135deg, var(--color-primary), #5b84ff);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: 0.25s;
  box-shadow: 0 16px 30px rgba(51, 103, 232, 0.28);
}

.otp-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.otp-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.otp-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top: 2px solid white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.otp-resend-btn {
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.otp-resend-btn:disabled {
  color: var(--color-text-muted);
  cursor: default;
}

/* ---------- FOOTER ---------- */

.otp-footer {
  text-align: center;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  padding-top: 4px;
}

.otp-error {
  display: block;
  margin-top: 8px;
  color: var(--color-danger);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .otp-admin-layout {
    grid-template-columns: 1fr;
  }

  .otp-brand-panel {
    display: none;
  }

  .otp-login-panel {
    padding: 24px;
  }

  .otp-login-card {
    padding: 28px;
  }

  .otp-box-group {
    gap: 8px;
  }

  .otp-digit-box {
    width: 48px;
    height: 58px;
    font-size: 1.2rem;
  }
}
