@import url("./console.css");

html, body.login { height: 100%; overflow: hidden; }
body.login {
  background: #08120f;
  display: block;
  min-height: 100%;
}

.login-split {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 460px;
}

.visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 22, 20, 0.15), rgba(5, 18, 16, 0.72) 70%),
    url("../assets/covers/campus.jpg") center/cover no-repeat;
}
.visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(1200px 500px at 20% 10%, rgba(15,124,114,0.18), transparent 55%);
}
.visual-inner {
  position: relative; z-index: 1;
  height: 100%;
  padding: 28px 40px 36px;
  display: flex; flex-direction: column;
  color: #f4f7f6;
}
.visual-inner .lockup {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 650; font-size: 16px;
}
.visual-inner .lockup img {
  width: 32px; height: 32px; border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.visual-inner .lockup small {
  display: block; font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; color: rgba(255,255,255,0.62);
}
.visual-copy { margin-top: auto; max-width: 520px; }
.visual-copy .eyebrow {
  font-size: 12px; letter-spacing: 0.18em;
  color: #9be8dc; font-weight: 500;
}
.visual-copy h1 {
  margin: 10px 0 12px;
  font-size: 40px; font-weight: 650; letter-spacing: -0.04em;
  line-height: 1.18;
  text-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.visual-copy p { color: rgba(244,247,246,0.78); font-size: 14.5px; max-width: 420px; }
.pills { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pills span {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  font-size: 13px;
}
.pills img { width: 24px; height: 24px; border-radius: 6px; }

.panel {
  background: #fff;
  display: flex; flex-direction: column;
  padding: 28px 40px 24px;
}
.panel-top {
  display: flex; justify-content: flex-end;
}
.panel-top a { color: var(--txt-2); font-size: 13px; }
.panel-top a:hover { color: var(--brand); }
.panel-main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  width: 100%;
}
.login-tabs {
  display: flex; gap: 0; width: 100%;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.login-tabs button {
  flex: 1; height: 40px; border: 0; background: none;
  font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.login-tabs button.is-on {
  color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.tab-pane { width: 100%; }
.hint { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.phone-form {
  width: 100%; max-width: 320px; margin: 24px auto 0;
  text-align: left; display: grid; gap: 14px;
}
.phone-form label {
  display: grid; gap: 6px;
  font-size: 13px; color: var(--txt-2); font-weight: 500;
}
.phone-form input {
  height: 40px; padding: 0 12px; border-radius: 4px;
  border: 1px solid var(--line); font-size: 14px;
}
.phone-form input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.send {
  height: 40px; padding: 0 12px; border-radius: 4px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--brand); white-space: nowrap; cursor: pointer;
}
.submit {
  height: 42px; border: 0; border-radius: 4px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.submit.wx-go { width: 100%; max-width: 320px; margin: 28px auto 0; }
.submit:hover { filter: brightness(0.95); color: #fff; }

.qr-frame {
  margin: 28px 0 14px;
  width: 228px; height: 228px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px #e8eaed, 0 12px 32px rgba(16,24,40,0.08);
  position: relative;
}
.qr-frame::before, .qr-frame::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--brand);
}
.qr-frame::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.qr-frame::after { top: 6px; right: 6px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.qr-frame img { width: 100%; height: 100%; object-fit: cover; }
.wx {
  display: flex; align-items: center; gap: 6px;
  color: var(--txt); font-size: 13.5px; font-weight: 500;
}
.wx i {
  width: 18px; height: 18px; border-radius: 4px;
  background: #07c160; color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.refresh {
  margin-top: 10px; border: 0; background: none;
  color: var(--muted); font-size: 12.5px;
}
.refresh:hover { color: var(--brand); }

.panel-legal {
  color: var(--muted); font-size: 12px; text-align: center;
}

@media (max-width: 900px) {
  body.login { overflow: auto; }
  .login-split { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .visual { min-height: 240px; }
  .visual-copy h1 { font-size: 28px; }
}
