@import "fonts.css";
@import "login-fonts.css";

:root {
  --brand-50:  #eef4ff;
  --brand-100: #dbe6ff;
  --brand-200: #bdd1ff;
  --brand-300: #90b2ff;
  --brand-400: #5d87fb;
  --brand-500: #3a62f0;
  --brand-600: #2848d6;
  --brand-700: #2139ab;
  --brand-800: #213687;
  --brand-900: #1f3170;
  --warm-400: #ff9a52;
  --ink-900: #1a1d29;
  --ink-700: #3a3f52;
  --ink-500: #6b7184;
  --ink-400: #9aa0b4;
  --line:    #e8eaf0;
  --canvas:  #f6f7fb;
  --r-md: 14px;
  --r-pill: 999px;
  --sh-glow: 0 8px 24px rgba(58,98,240,.28);
  --font: "Inter", "Noto Sans TC", -apple-system, system-ui, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body.login {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed !important;
  width: 100% !important;
  margin: 0;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body.login footer,
body.login .footer {
  display: none !important;
}

body.login #login-modal.modal {
  display: none !important;
  pointer-events: none !important;
}

.fp-login-page {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  z-index: 50;
}

/* Left brand pane */
.brand-pane {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1f3170 0%, #2848d6 55%, #3a62f0 100%);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .5;
  pointer-events: none;
}

.blob.a {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(251,131,51,.55), transparent 70%);
  top: -80px;
  right: -60px;
}

.blob.b {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124,92,245,.6), transparent 70%);
  bottom: -60px;
  left: -40px;
}

.dots {
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}

.brand-pane__top,
.brand-pane__content,
.brand-pane__footer {
  position: relative;
}

.fp-login-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-pane__content {
  max-width: 420px;
}

.brand-pane__title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}

.brand-pane__lead {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin: 0 0 36px;
}

.feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.feat-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 20px;
}

.feat-title {
  font-weight: 700;
}

.feat-desc {
  font-size: 14px;
  color: rgba(255,255,255,.72);
}

.brand-pane__footer {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* Right form pane */
.form-pane {
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--canvas);
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  color: var(--ink-900);
}

.login-card__subtitle {
  color: var(--ink-500);
  margin: 0 0 30px;
  font-size: 15px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 14px 46px 14px 46px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-family: var(--font);
  transition: all .18s;
  color: var(--ink-900);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-50);
}

.input-ic {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
}

.password-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13.5px;
  gap: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-500);
}

.link {
  color: var(--brand-600);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.link:hover {
  text-decoration: underline;
}

.btn {
  font-weight: 700;
  border-radius: var(--r-pill);
  transition: all .18s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  justify-content: center;
  background: var(--brand-500);
  color: #fff;
  box-shadow: var(--sh-glow);
}

.btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(58,98,240,.36);
}

.fp-login-alert {
  margin-bottom: 18px;
  border-radius: var(--r-md);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-400);
  font-size: 13px;
  font-weight: 600;
  margin: 22px 0;
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-card .social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.login-card .social-login .social-icon {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all .18s;
  margin: 0;
  height: auto;
  line-height: 1.4;
  text-decoration: none;
  box-sizing: border-box;
}

.login-card .social-login .social-icon:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.login-card .social-login .social-icon img {
  width: 18px;
  height: 18px;
  margin: 0;
  object-fit: contain;
}

.login-card .social-login .social-icon i {
  font-size: 18px;
}

.login-card .social-login .line {
  display: none;
}

.login-card__signup {
  text-align: center;
  margin-top: 28px;
  color: var(--ink-500);
  font-size: 14px;
}

.fade-up {
  animation: fpFadeUp .5s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes fpFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .fp-login-page {
    grid-template-columns: 1fr;
  }

  .brand-pane {
    display: none;
  }

  .form-pane {
    min-height: 100vh;
    padding: 32px 24px 5rem;
  }
}

@media screen and (max-width: 991px) {
  .form-pane {
    padding-bottom: 5rem;
  }
}
