/* =============================================
   auth.css — Signup & Login pages
   Matches the Rejected by AdSense design system
   ============================================= */

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

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #f1f3f4;
  color: #202124;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.back-link:hover {
  color: #202124;
}

/* ── Card ── */
.auth-card {
  background: #ffffff;
  border: 1px solid rgba(218, 220, 224, 0.6);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

/* ── Headings ── */
.auth-heading {
  font-size: 22px;
  font-weight: 600;
  color: #202124;
  text-align: center;
  margin-top: 0;
  letter-spacing: -0.3px;
}
.auth-subheading {
  font-size: 14px;
  color: #5f6368;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 24px;
}

/* ── Alert ── */
.auth-alert {
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  margin-top: 16px;
}
.auth-alert.hidden {
  display: none;
}
.auth-alert--error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #f5c6c4;
}
.auth-alert--success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #a8d5b5;
}

/* ── Google button ── */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  margin-bottom: 0;
  margin-top: 20px;
}
.google-btn:hover {
  background: #f1f3f4;
}
.google-btn:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #dadce0;
}
.auth-divider span {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Form ── */
.form-group {
  margin-bottom: 16px;
  margin-top: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #202124;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form-input::placeholder {
  color: #9aa0a6;
}
.form-input:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 1px #4285f4;
}
.password-input {
  padding-right: 44px;
}

.toggle-password-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  width: 44px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  border-radius: 0 8px 8px 0;
  outline: none;
}
.toggle-password-btn:hover {
  color: #202124;
}

/* ── Forgot link ── */
.forgot-row {
  text-align: right;
  margin-top: 6px;
}
.forgot-link {
  font-size: 12px;
}

/* ── Submit button ── */
.auth-btn {
  width: 100%;
  height: 44px;
  background: #4285f4;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s;
  outline: none;
}
.auth-btn:hover {
  background: #185abc;
}
.auth-btn:disabled {
  background: #a8c7fa;
  cursor: not-allowed;
}
.auth-btn:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #4285f4;
}

/* ── Footer & links ── */
.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #5f6368;
}
.auth-link {
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
}
.auth-link:hover {
  text-decoration: underline;
}

.auth-terms {
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #9aa0a6;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
  }
}

/* ── Hide browser-native password reveal button (Edge/Chrome/Safari) ── */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none !important;
}
input[type="text"].password-input::-ms-reveal,
input[type="text"].password-input::-webkit-contacts-auto-fill-button {
  display: none !important;
}
