/* Premium auth — compact mobile-app style */
.page-auth {
  background: #ffffff;
  min-height: 100dvh;
}

.auth-shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  margin: 0 auto;
  z-index: 1;
}

.auth-shell--admin {
  max-width: 400px;
}

.auth-shell__bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(244, 114, 182, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(129, 140, 248, 0.08), transparent 45%),
    #ffffff;
  pointer-events: none;
  z-index: 0;
}

.auth-header {
  position: relative;
  padding: 12px 16px;
  z-index: 2;
}

.auth-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.auth-header__brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.auth-main {
  flex: 1;
  position: relative;
  padding: 0 16px 20px;
  z-index: 2;
}

.auth-footer {
  position: relative;
  padding: 12px 16px 16px;
  text-align: center;
  z-index: 2;
}

.auth-footer a {
  font-size: 0.8125rem;
  color: #ec4899;
  font-weight: 600;
  text-decoration: none;
}

.auth-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  animation: auth-in 0.35s ease;
}

.auth-card--admin {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

@keyframes auth-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card__head {
  text-align: center;
  margin-bottom: 18px;
}

.auth-card__logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f9a8d4, #818cf8);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card__logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.auth-card__eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a855f7;
  margin-bottom: 4px;
}

.auth-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 4px;
}

.auth-card__sub {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-field__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
}

.auth-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__icon {
  position: absolute;
  left: 12px;
  display: flex;
  color: #94a3b8;
  pointer-events: none;
  line-height: 0;
}

.auth-field__icon svg {
  width: 18px;
  height: 18px;
}

.auth-field__input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 40px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field__input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.auth-field__input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.auth-field__toggle {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.auth-field__toggle:hover {
  color: #64748b;
}

.auth-field__toggle svg {
  width: 18px;
  height: 18px;
}

.auth-field__toggle .auth-icon-eye-off {
  display: none;
}

.auth-field__toggle.is-visible .auth-icon-eye {
  display: none;
}

.auth-field__toggle.is-visible .auth-icon-eye-off {
  display: block;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
}

.auth-form__remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.auth-form__remember input {
  accent-color: #ec4899;
  width: 14px;
  height: 14px;
}

.auth-form__link {
  color: #ec4899;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.auth-form__link:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-btn:hover {
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}

.auth-btn:active {
  transform: scale(0.98);
}

.auth-btn--admin {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.auth-btn--admin:hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.auth-btn--outline {
  color: #475569;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
  text-decoration: none;
}

.auth-btn--outline:hover {
  background: #f8fafc;
  border-color: rgba(236, 72, 153, 0.25);
  color: #ec4899;
  box-shadow: none;
}

.auth-btn--apk {
  color: #0f172a;
  background: linear-gradient(145deg, #f0fdf4, #ffffff);
  border: 1px solid rgba(37, 211, 102, 0.25);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.12);
  text-decoration: none;
}

.auth-btn--apk:hover {
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.18);
}

.auth-apk__note {
  margin: 8px 0 0;
  font-size: 0.6875rem;
  color: #94a3b8;
  text-align: center;
}

.auth-form__terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.auth-form__terms input {
  accent-color: #ec4899;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-apk {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  animation: auth-in 0.35s ease 0.1s both;
}

.auth-apk__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-apk__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}

.auth-apk__version {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-apk__btn {
  width: 100%;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-apk__btn svg {
  width: 18px;
  height: 18px;
  color: #6366f1;
}

.auth-apk__btn:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.auth-apk__btn:active {
  transform: scale(0.98);
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: #64748b;
}

.auth-switch a {
  color: #ec4899;
  font-weight: 600;
  text-decoration: none;
}

.auth-alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  margin-bottom: 14px;
  border: 1px solid;
  animation: auth-in 0.3s ease;
}

.auth-alert--success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
  color: #059669;
}

.auth-alert--error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
  color: #dc2626;
}

.auth-support {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(145deg, #f0fdf4, #ffffff);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 12px;
}

.auth-support__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.auth-support__sub {
  font-size: 0.6875rem;
  color: #64748b;
  margin-bottom: 10px;
}

.auth-support__actions {
  display: flex;
  gap: 8px;
}

.auth-support__btn {
  flex: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-support__btn svg {
  width: 16px;
  height: 16px;
}

.auth-support__btn--wa {
  background: linear-gradient(135deg, #34d399, #25d366);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.auth-support__btn--call {
  background: #fff;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.auth-support__btn:active {
  transform: scale(0.97);
}

.auth-note {
  font-size: 0.6875rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .auth-shell {
    padding-top: 16px;
  }

  .auth-card {
    padding: 24px 22px;
  }
}
