@import url("/utils/components/theme.css");
/* =========================================
   AUTH MODAL
========================================= */

* {
  font-family: var(--font-mono);
}

.log-in {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.log-in.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================
   OVERLAY
========================================= */

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* =========================================
   MODAL CARD
========================================= */

.auth-modal {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
  padding: clamp(1.8rem, 5vw, 2.4rem) clamp(1.6rem, 5vw, 2.2rem);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: translateY(32px) scale(0.97);
  transition: transform 0.3s ease;
  max-height: 92vh;
  overflow-y: auto;
}

.log-in.active .auth-modal {
  transform: translateY(0) scale(1);
}

/* =========================================
   CLOSE BUTTON
========================================= */

.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.auth-close:hover {
  transform: translate(-2px, -2px);
}

.auth-close svg {
  width: 16px;
  height: 16px;
}

/* =========================================
   BRAND
========================================= */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--yellow);
}

.auth-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-top {
  font-weight: 900;
  font-size: 1.2rem;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
}

.brand-bottom {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* =========================================
   TABS
========================================= */

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #eceae0;
  border-bottom: 2.5px solid var(--ink);
  padding: 4px;
  margin-block: 1rem;
}

.auth-tab {
  height: 40px;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--yellow);
  color: var(--ink);
}

/* =========================================
   FORMS
========================================= */

.auth-form {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.auth-form.active {
  display: flex;
}

/* =========================================
   HEADING
========================================= */

.auth-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.55rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-heading p {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================
   SEPARATOR LINE
========================================= */

.auth-sep {
  height: 1px;
  background: #e0ded6;
  margin: 0.1rem 0;
}

/* =========================================
   FIELDS
========================================= */

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-field label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.auth-field input {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-field input::placeholder {
  color: #bbb;
}

.auth-field input:focus {
  transform: translate(-2px, -2px);
  border-color: var(--blue);
  box-shadow: 2px 2px 0 var(--blue);
}

/* =========================================
   OPTIONS ROW
========================================= */

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.remember-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.remember-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  accent-color: var(--yellow);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-options a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

/* =========================================
   SUBMIT BUTTON
========================================= */

.auth-submit {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  box-sizing: border-box;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.auth-submit:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.auth-submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* =========================================
   OR DIVIDER
========================================= */

.auth-or {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #bbb;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0ded6;
}

/* =========================================
   GOOGLE BUTTON
========================================= */

.google-btn {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  box-sizing: border-box;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.google-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.google-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 480px) {
  .auth-modal {
    padding: 1.4rem 1.2rem;
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .auth-submit,
  .google-btn {
    height: 48px;
    font-size: 0.8rem;
  }

  .auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}
