/* MyTap — auth pages */
:root {
  --mt-bg: #F1F1F4;
  --mt-purple: #7C5CFF;
  --mt-purple-deep: #6647E0;
  --mt-glass-bg: rgba(255, 255, 255, 0.72);
  --mt-glass-border: rgba(255, 255, 255, 0.65);
  --mt-text-primary: #1D1D1F;
  --mt-text-secondary: #6E6E73;
  --mt-divider: rgba(0, 0, 0, 0.07);
  --mt-radius-lg: 26px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.mt-auth {
  background: var(--mt-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

body.mt-auth::before,
body.mt-auth::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

body.mt-auth::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(124, 92, 246, 0.28), transparent 70%);
}

body.mt-auth::after {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -40px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 70%);
}

.mt-auth .auth-hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.mt-auth .auth-hero-logo { height: 38px; width: auto; margin-bottom: 18px; }
.mt-auth .auth-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--mt-text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.mt-auth .auth-hero-sub { font-size: 14px; color: var(--mt-text-secondary); line-height: 1.5; }

.mt-auth .auth-card {
  flex: 1;
  position: relative;
  z-index: 1;
  margin: 0 16px 24px;
  background: var(--mt-glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--mt-glass-border);
  border-radius: var(--mt-radius-lg);
  box-shadow: 0 18px 50px rgba(31, 38, 68, 0.11);
  padding: 32px 24px calc(40px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 520px) {
  body.mt-auth {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .mt-auth .auth-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
    margin: 0;
    border-radius: var(--mt-radius-lg);
  }
  .mt-auth .auth-hero { padding-bottom: 24px; }
}

.mt-auth .card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--mt-text-primary);
  margin-bottom: 24px;
}

.mt-auth label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mt-text-secondary);
  margin-bottom: 6px;
}

.mt-auth input[type="email"],
.mt-auth input[type="password"],
.mt-auth input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mt-divider);
  border-radius: 12px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--mt-text-primary);
  font-family: inherit;
}

.mt-auth input:focus {
  outline: none;
  border-color: rgba(124, 92, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 92, 246, 0.12);
}

.mt-auth .btn-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mt-purple), var(--mt-purple-deep));
  box-shadow: 0 8px 20px rgba(124, 92, 246, 0.35);
  font-family: inherit;
}

.mt-auth .btn-submit:hover { filter: brightness(1.05); }

.mt-auth .auth-error {
  background: rgba(217, 66, 90, 0.08);
  border: 1px solid rgba(217, 66, 90, 0.2);
  color: #D9425A;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.mt-auth .auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--mt-text-secondary);
}

.mt-auth .auth-links a:hover { color: var(--mt-purple); }

.mt-auth .btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--mt-purple), var(--mt-purple-deep)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 8px 20px rgba(124, 92, 246, 0.35) !important;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}

.mt-auth .btn-secondary {
  display: block;
  width: 100%;
  padding: 13px;
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid var(--mt-divider) !important;
  border-radius: 999px !important;
  color: var(--mt-text-primary) !important;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.mt-auth .error-box {
  background: rgba(217, 66, 90, 0.08) !important;
  border: 1px solid rgba(217, 66, 90, 0.2) !important;
  color: #D9425A !important;
  border-radius: 12px;
}

.mt-auth .divider::before,
.mt-auth .divider::after { background: var(--mt-divider) !important; }

.mt-auth .forgot-link a { color: var(--mt-text-secondary) !important; }
.mt-auth .forgot-link a:hover { color: var(--mt-purple-deep) !important; }
