@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

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

body {
  min-height: 100vh;
  background-color: #0a0e1a;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(88, 28, 220, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(60, 20, 160, 0.10) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  color: #ffffff;
  padding: 24px;
}

.wrapper {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 44px 36px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* Logo shield icon area */
/* ADD this instead: */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(123, 47, 255, 0.5));
}

h1 {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: #ffffff;
}

/* Map h1 to "Continue to SilentPay" feel */
h1::before {
  content: 'Continue to ';
  font-weight: 300;
  color: rgba(255,255,255,0.7);
}

.subtitle {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

/* Google login button — shown ABOVE the form fields */
.google-login {
  margin-bottom: 16px;
}

.google-login button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.google-login button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.google-login button:active {
  transform: translateY(0);
}

/* Divider */
#loginForm::before {
  content: 'or';
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  position: relative;
  margin-bottom: 20px;
}

#loginForm::before {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* OR divider line */
.field:first-of-type {
  position: relative;
}

.field:first-of-type::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
  margin-bottom: 20px;
}

/* Form fields */
.field {
  margin-bottom: 14px;
}

.field label {
  display: none;
}

.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Auto-set placeholders via attribute styling */
#email {
  /* placeholder shown via HTML attribute */
}

.field input:focus {
  border-color: rgba(123, 47, 255, 0.7);
  background: rgba(123, 47, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(123, 47, 255, 0.15);
}

/* Login button */
.btn {
  width: 100%;
  background: linear-gradient(135deg, #7b2fff 0%, #5a0fd4 100%);
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 15px;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 8px;
  margin-bottom: 20px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(123, 47, 255, 0.45);
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(123, 47, 255, 0.55);
}

.btn:active {
  transform: translateY(0);
  opacity: 1;
}

/* Error message */
.error-msg {
  font-size: 0.78rem;
  text-align: center;
  min-height: 20px;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Links */
.link {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
}

.link a {
  color: #7b2fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.link a:hover {
  color: #9d5fff;
}

#resendBox {
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

#resendBox a {
  color: #7b2fff;
  text-decoration: none;
  font-weight: 600;
}

/* Forgot password link */
#forgotPass {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: #7b2fff;
  text-decoration: none;
  font-weight: 500;
  margin-top: -6px;
  margin-bottom: 4px;
  transition: color 0.2s;
}

#forgotPass:hover {
  color: #9d5fff;
}
