/* ========================================
   Auth Pages – Login / Register
   Matches Poiiky Studio landing dark design system
   ======================================== */

/* 0. Base resets (auth pages load only this CSS) */
:root {
  color-scheme: dark;
  box-sizing: border-box;
}

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

body {
  background: #09090b;
  color: #f4f4f5;
  font: 400 16px/1.65 "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

svg.i {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

:focus-visible {
  outline: 2px solid #d4ff4a;
  outline-offset: 3px;
}

/* 1. Full-page container */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090b;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 640px;
  background:
    radial-gradient(50% 70% at 50% 0, #1f3a1a99, transparent 70%),
    radial-gradient(35% 50% at 88% 12%, #0e3a4a88, transparent 70%);
  pointer-events: none;
}

.auth-page::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  background-image:
    linear-gradient(#ffffff0a 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 100% at 50% 0, #000, transparent);
  pointer-events: none;
}

/* 2. Auth card */
.auth-card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  padding: 44px;
  border-radius: 24px;
  background: #101014;
  border: 1px solid #25252d;
  box-shadow: 0 40px 100px #000a;
}

/* 3. Logo */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  font-weight: 700;
  font-size: 20px;
  color: #f4f4f5;
  letter-spacing: -0.02em;
}

.auth-logo .lm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #d4ff4a, #6dffc4);
  color: #000;
  display: grid;
  place-items: center;
}
.auth-logo .logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

/* 4. Title */
.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  color: #f4f4f5;
}

/* 5. Subtitle */
.auth-subtitle {
  font-size: 15px;
  color: #9a9aa8;
  text-align: center;
  margin-bottom: 32px;
}

/* 6. Form layout */
.auth-form {
  display: grid;
  gap: 18px;
}

/* 7. Form field */
.form-field {
  position: relative;
}

/* 8. Label */
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #d9d9e0;
  margin-bottom: 7px;
}

/* 9. Input */
.form-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #17171c;
  border: 1px solid #25252d;
  border-radius: 12px;
  color: #f4f4f5;
  font-size: 15px;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  transition: border-color 0.2s;
}

.form-field input:focus {
  border-color: #d4ff4a66;
  outline: none;
  box-shadow: 0 0 0 3px #d4ff4a12;
}

/* 10. Placeholder */
.form-field input::placeholder {
  color: #6d6d7a;
}

/* 11. Password toggle */
.password-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: none;
  border: none;
  color: #9a9aa8;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #f4f4f5;
}

/* 12. Custom checkbox */
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #9a9aa8;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #25252d;
  background: #17171c;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.auth-checkbox input[type="checkbox"]:checked {
  background: #d4ff4a;
  border-color: #d4ff4a;
}

.auth-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 13. Auth buttons */
.auth-btn {
  width: 100%;
  height: 48px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  transition: 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.auth-btn.primary {
  background: #f4f4f5;
  color: #000;
  box-shadow: 0 0 0 1px #fff, 0 8px 24px #ffffff1f;
}

.auth-btn.primary:hover {
  background: #d4ff4a;
  box-shadow: 0 0 0 1px #d4ff4a, 0 10px 34px #d4ff4a55;
}

.auth-btn.secondary {
  background: transparent;
  border: 1px solid #25252d;
  color: #f4f4f5;
}

.auth-btn.secondary:hover {
  background: #17171c;
}

/* 14. Divider ("or") */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0;
  color: #6d6d7a;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #25252d;
}

/* 15. Error message */
.auth-error {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(229, 69, 69, 0.08);
  border: 1px solid rgba(229, 69, 69, 0.25);
  color: #ff6b6b;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* 16. Bottom link (e.g. "Already have an account? Log in") */
.auth-link {
  text-align: center;
  font-size: 14px;
  color: #9a9aa8;
  margin-top: 24px;
}

.auth-link a {
  color: #d4ff4a;
  font-weight: 600;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* 17. Badge (e.g. "Secure login") */
.auth-badge {
  text-align: center;
  margin-top: 16px;
}

.auth-badge span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #d4ff4a;
  background: #d4ff4a12;
  border-radius: 99px;
  padding: 6px 16px;
}

/* 18. Password strength bar */
.strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 4px;
  margin-top: 8px;
}

.strength-bar span {
  border-radius: 99px;
  background: #25252d;
  transition: background 0.3s;
}

.strength-bar.s1 span:nth-child(1) {
  background: #e54545;
}

.strength-bar.s2 span:nth-child(-n+2) {
  background: #e4c560;
}

.strength-bar.s3 span:nth-child(-n+3) {
  background: #d4ff4a;
}

.strength-bar.s4 span {
  background: #34d27b;
}

/* 19. Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  background: #17171c;
  border: 1px solid #25252d;
  color: #f4f4f5;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-google:hover {
  background: #1f1f26;
  border-color: #3a3a46;
  box-shadow: 0 4px 16px rgba(255,255,255,0.05);
}

.btn-google svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 19b. Google icon (standalone) */
.auth-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 20. Responsive */
@media (max-width: 600px) {
  .auth-card {
    max-width: none;
    margin: 0 16px;
    padding: 28px 22px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page::before,
  .auth-page::after,
  .form-field input,
  .password-toggle,
  .auth-checkbox input[type="checkbox"],
  .auth-btn,
  .strength-bar span {
    transition: none;
  }
}
