* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, .20), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, .16), transparent 25%),
    linear-gradient(135deg, #06131a 0%, #0f172a 45%, #111827 100%);
}

.login-container {
  width: 100%;
  max-width: 430px;
}

.login-card {
  background: rgba(255, 255, 255, .97);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

.back-btn {
  display: inline-block;
  margin-bottom: 22px;
  text-decoration: none;
  color: #0891b2;
  font-weight: 700;
}

.login-card h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #0f172a;
}

.subtitle {
  color: #64748b;
  margin-bottom: 24px;
}

.google-btn {
  width: 100%;
  border: none;
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
  transition: .2s;
}

.google-btn img {
  width: 22px;
}

.google-btn:hover {
  transform: translateY(-2px);
}

.auth-trust-text {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
}

.divider {
  text-align: center;
  margin: 22px 0;
  color: #94a3b8;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: .2s;
}

input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .16);
}

.password-group {
  position: relative;
}

.password-group input {
  padding-right: 60px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.login-btn {
  border: none;
  background: #06b6d4;
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.login-btn:hover {
  background: #0891b2;
}

.login-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-links a {
  text-decoration: none;
  color: #0891b2;
  font-size: 14px;
  font-weight: 600;
}

.premium-alert {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 99999;

  backdrop-filter: blur(6px);
}

.premium-alert.show {
  display: flex;
}

.premium-alert-box {

  width: min(92%, 360px);

  background: white;

  border-radius: 24px;

  padding: 24px;

  text-align: center;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.18);

  animation: popupFade .22s ease;
}

@keyframes popupFade {

  from {
    opacity: 0;
    transform: scale(.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }

}

.premium-alert-icon {

  width: 72px;
  height: 72px;

  margin: 0 auto 16px;

  border-radius: 50%;

  background:
    linear-gradient(135deg,
      #06b6d4,
      #0891b2);

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;
}

.premium-alert-box h3 {

  font-size: 24px;

  margin-bottom: 10px;

  color: #111827;
}

.premium-alert-box p {

  color: #64748b;

  font-size: 15px;

  line-height: 1.5;

  margin-bottom: 22px;
}

.premium-alert-actions {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;
}

.premium-alert-actions button {

  border: none;

  border-radius: 14px;

  padding: 12px;

  font-weight: 800;

  cursor: pointer;
}

#premiumAlertCancel {

  background: #e5e7eb;

  color: #111827;
}

#premiumAlertConfirm {

  background:
    linear-gradient(135deg,
      #06b6d4,
      #0891b2);

  color: white;
}

.loading-spinner {

  width: 22px;
  height: 22px;

  border: 3px solid rgba(255, 255, 255, .28);

  border-top-color: white;

  border-radius: 50%;

  animation: spin .65s linear infinite;

  display: inline-block;
}

@keyframes spin {

  to {
    transform: rotate(360deg);
  }

}

.facebook-btn {
  width: 100%;
  border: none;
  background: #1877f2;
  color: white;
  padding: 14px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  margin-top: 12px;

  transition: .2s;
}

.facebook-btn:hover {
  transform: translateY(-2px);
}