/* ============================================
   Yagoyoo — Auth Pages (Login / Register)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #080a12;
  color: #c8cdd8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Canvas background ---------- */
.auth__canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.auth__overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(8,10,18,0.3) 20%, #080a12 75%);
  z-index: 1;
}

/* ---------- Container ---------- */
.auth__container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ---------- Card ---------- */
.auth__card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 48px 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Logo ---------- */
.auth__logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth__logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* ---------- Form ---------- */
.auth__form--hidden {
  display: none;
}

.auth__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f0f2f7;
  text-align: center;
  margin-bottom: 6px;
}

.auth__subtitle {
  font-size: 0.9rem;
  color: #8892a8;
  text-align: center;
  margin-bottom: 28px;
}

/* ---------- Fields ---------- */
.auth__field {
  margin-bottom: 18px;
}

.auth__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9a9fb0;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth__field input,
.auth__field select {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #f0f2f7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.auth__field input::placeholder {
  color: #555a6a;
}

.auth__field input:focus,
.auth__field select:focus {
  border-color: rgba(61, 184, 219, 0.5);
  box-shadow: 0 0 0 3px rgba(61, 184, 219, 0.1);
}

.auth__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.auth__field select option {
  background: #12141e;
  color: #f0f2f7;
}

/* ---------- Error ---------- */
.auth__error {
  font-size: 0.85rem;
  color: #6DCDE6;
  text-align: center;
  margin-bottom: 12px;
  min-height: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, #2A9ABB, #3DB8DB);
  color: #fff;
  box-shadow: 0 4px 24px rgba(61, 184, 219, 0.3);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #1F7F9C, #2A9ABB);
  box-shadow: 0 6px 32px rgba(61, 184, 219, 0.45);
  transform: translateY(-1px);
}
.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--block { width: 100%; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- Switch link ---------- */
.auth__switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #8892a8;
}
.auth__switch a {
  color: #6DCDE6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.auth__switch a:hover {
  color: #8FD9EC;
}

/* ---------- Language toggle ---------- */
.lang-toggle-auth {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #c8cdd8;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-toggle-auth:hover {
  border-color: rgba(61, 184, 219, 0.4);
  background: rgba(61, 184, 219, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .auth__card {
    padding: 36px 24px;
    max-width: 100%;
  }
  .auth__container { padding: 24px 16px; }
  .auth__title { font-size: 1.3rem; }
  .auth__subtitle { font-size: 0.85rem; }
  .auth__field input,
  .auth__field select {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 14px 16px;
  }
  .btn--lg { padding: 16px 28px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .auth__card {
    padding: 28px 18px;
    border-radius: 14px;
  }
  .auth__logo-img {
    width: 64px;
    height: 64px;
  }
  .auth__title { font-size: 1.2rem; }
  .auth__container { padding: 20px 12px; }
  .lang-toggle-auth { bottom: 12px; right: 12px; }
  .auth__field input,
  .auth__field select {
    font-size: 16px;
    padding: 12px 14px;
  }
}
