/* Japan Hacks Guide — Login / Register Page */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: #0f0f1e !important; font-family: 'Inter', sans-serif; color: #E8E8E8; min-height: 100vh; }
.site-header, .ast-above-header, .ast-below-header, #page > .site-header,
.ast-mobile-header-wrap, .site-footer, .ast-footer-overlay, .ast-small-footer,
.ast-above-footer, .ast-below-footer, #secondary, .ast-sidebar,
.entry-header, .entry-title, .post-navigation { display: none !important; }
#page, .site, #content, .ast-container, #primary, main, article,
.entry-content, .site-content { width: 100% !important; max-width: 100% !important;
  padding: 0 !important; margin: 0 !important; background: #0f0f1e !important; border: none !important; }

/* Layout */
.login-container {
  display: flex; min-height: 100vh;
}

/* Left brand panel */
.login-brand {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a35 50%, #0f0f1e 100%);
  padding: 60px 40px; position: relative; overflow: hidden;
}
.login-brand::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(197,165,114,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.login-brand__content { max-width: 400px; position: relative; z-index: 1; }
.login-brand__logo img { width: 56px; height: 56px; margin-bottom: 24px; }
.login-brand__title {
  font-family: 'Noto Serif JP', serif; font-size: 28px; color: #C5A572;
  margin-bottom: 16px; letter-spacing: 0.5px;
}
.login-brand__tagline {
  font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 36px;
}
.login-brand__features { display: flex; flex-direction: column; gap: 14px; }
.login-brand__feat {
  font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 10px;
}
.login-brand__feat span {
  color: #C5A572; font-size: 14px; font-weight: 700; flex-shrink: 0;
}

/* Right form panel */
.login-form-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 32px;
}

.login-form-card {
  width: 100%; max-width: 400px;
}

/* Tabs */
.login-tabs {
  display: flex; gap: 0; margin-bottom: 28px;
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 3px;
  border: 1px solid rgba(197,165,114,0.15);
}
.login-tab {
  flex: 1; text-align: center; padding: 10px 0; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.4); text-decoration: none; border-radius: 6px;
  transition: all 0.2s;
}
.login-tab.active {
  background: rgba(197,165,114,0.12); color: #C5A572;
}
.login-tab:hover:not(.active) { color: rgba(255,255,255,0.6); }

/* Error / Success */
.login-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 20px;
}
.login-success {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 20px;
}

/* Social buttons */
.login-social { display: flex; flex-direction: column; gap: 10px; }
.login-social__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.15); transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.login-social__btn--google {
  background: #fff; color: #333;
}
.login-social__btn--google:hover { background: #f5f5f5; }
.login-social__btn--apple {
  background: #000; color: #fff; border-color: rgba(255,255,255,0.2);
}
.login-social__btn--apple:hover { background: #1a1a1a; }
.login-social__btn--disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.login-coming-soon {
  font-size: 10px; background: rgba(255,255,255,0.15); padding: 2px 8px;
  border-radius: 4px; margin-left: 6px; letter-spacing: 0.5px;
}
a.login-social__btn { text-decoration: none; }

/* Divider */
.login-divider {
  display: flex; align-items: center; gap: 14px; margin: 24px 0;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}
.login-divider span { font-size: 12px; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px; }

/* Form fields */
.login-field { margin-bottom: 16px; }
.login-field label {
  display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5);
  margin-bottom: 6px; letter-spacing: 0.5px;
}
.login-field input {
  width: 100%; padding: 12px 14px; border-radius: 8px; font-size: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: #E8E8E8; outline: none; transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.login-field input:focus {
  border-color: rgba(197,165,114,0.5); background: rgba(255,255,255,0.07);
}
.login-field input::placeholder { color: rgba(255,255,255,0.2); }

/* Forgot */
.login-forgot { text-align: right; margin-bottom: 20px; }
.login-forgot a { font-size: 12px; color: #C5A572; text-decoration: none; }
.login-forgot a:hover { text-decoration: underline; }

/* Submit */
.login-submit {
  width: 100%; padding: 13px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #C5A572, #A8894E); color: #0f0f1e;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity 0.2s;
  font-family: 'Inter', sans-serif; letter-spacing: 0.3px;
}
.login-submit:hover { opacity: 0.9; }

/* Toggle */
.login-toggle {
  text-align: center; margin-top: 24px; font-size: 13px; color: rgba(255,255,255,0.4);
}
.login-toggle a { color: #C5A572; text-decoration: none; font-weight: 600; }
.login-toggle a:hover { text-decoration: underline; }

/* Legal */
.login-legal {
  text-align: center; margin-top: 20px; font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.6;
}
.login-legal a { color: rgba(255,255,255,0.35); text-decoration: underline; }
.login-legal a:hover { color: #C5A572; }

/* Back link */
.login-back {
  margin-top: 32px; font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none;
}
.login-back:hover { color: #C5A572; }

/* ====== Mobile ====== */
@media (max-width: 768px) {
  .login-container { flex-direction: column; }
  .login-brand { padding: 40px 24px 32px; }
  .login-brand__content { max-width: 100%; text-align: center; }
  .login-brand__features { align-items: center; }
  .login-brand__title { font-size: 24px; }
  .login-form-wrap { padding: 24px 20px 40px; }
  .login-form-card { max-width: 100%; }
}
