/* Portal theme · Tứ Phái Bảng (direction F, chosen 2026-12-06).
   Four sect homelands as slanted panels behind the four heroes; a white "select screen" card
   in the middle carries the four sect colours. Structure lives in base.css; this file sets the
   variables and the card details. Presentation only — no element is added, moved or hidden
   except the launcher button (web-only project). */
@import url("base.css");

:root {
  --sect-1: #f0a81c; /* Thiếu Lâm */
  --sect-2: #f27a9a; /* Đào Hoa */
  --sect-3: #3f8fd8; /* Toàn Chân */
  --sect-4: #c4282e; /* Cổ Mộ */
  --sects: linear-gradient(90deg, var(--sect-1) 0 25%, var(--sect-2) 25% 50%, var(--sect-3) 50% 75%, var(--sect-4) 75%);

  --t-page: #1b1a20;
  --t-bg: url("/portal-theme/bg.webp");
  --t-overlay: linear-gradient(180deg, rgba(16, 14, 20, 0) 55%, rgba(16, 14, 20, .55) 100%);
  --t-brand-plate: none;
  --t-brand-pad: 0;
  --t-hero-filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 22px 26px rgba(0, 0, 0, .5));
  --t-hero-l2: 14vw;
  --t-plate-l2: 18vw;

  --t-radius: 14px;
  --t-radius-sm: 10px;
  --t-card: #fbfaf7;
  --t-card-border: rgba(255, 255, 255, .9);
  --t-card-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -20px rgba(10, 8, 16, .65), 0 0 0 1px rgba(10, 8, 16, .08);
  --t-accent: var(--sects);
  --t-accent-solid: #1d1b22;
  --t-bar-width: 100%;
  --t-title: #16141b;
  --t-ink: #1d1b22;
  --t-label: #3a3742;
  --t-muted: #6b6775;
  --t-field: #f3f1f6;
  --t-field-border: transparent;
  --t-focus: rgba(63, 143, 216, .22);
  --t-danger: #b3261e;
  --t-on-accent: #ffffff;
  --t-main: linear-gradient(180deg, #2a2731, #16141b);
  --t-main-border: #16141b;
  --t-main-shadow: 0 12px 24px -10px rgba(22, 20, 27, .7);
  --t-soft: transparent;
  --t-soft-ink: #1d1b22;
  --t-soft-border: rgba(29, 27, 34, .18);
  --t-link: #2f6fb0;
  --t-tile: #ffffff;
  --t-tile-border: rgba(29, 27, 34, .12);
  --t-tile-hover: #f5f3f8;
  --t-tile-on: #eef5fc;
  --t-toast: #ffffff;

  --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6775' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6775' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Ccircle cx='12' cy='15.5' r='1.2'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---- Card: white select-screen plate with the four sect colours on top ---- */
.pt-card {
  position: relative;
  overflow: hidden;
  padding: 38px 36px 28px;
}
.pt-card::before {
  left: 0;
  width: 100%;
  height: 6px;
  border-radius: 0;
}

.pt-card-title {
  font: 700 30px/1.15 var(--t-display);
  letter-spacing: .2px;
}
.pt-card-login .pt-card-title::before {
  content: "Chào mừng đại hiệp";
  display: block;
  margin-bottom: 8px;
  font: 700 11px/1 var(--t-sans);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--sect-4);
}
.pt-card-sub { margin-top: 6px; font-size: 14px; line-height: 1.5; }

/* ---- Fields: soft filled inputs with an icon, sect-blue focus ring ---- */
.pt-form { gap: 16px; }
.pt-label {
  font: 700 11.5px/1 var(--t-sans);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--t-muted);
}
.pt-input {
  height: 50px;
  padding-left: 46px;
  font-size: 16px;
  background: var(--t-field) no-repeat 15px 50% / 20px 20px;
  border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.pt-input[name="username"] { background-image: var(--i-user); }
.pt-input[type="password"],
.pt-input[name="password"] { background-image: var(--i-lock); }
.pt-input:hover { background-color: #eeebf2; }
.pt-input:focus {
  background-color: #ffffff;
  border-color: var(--sect-3);
  box-shadow: 0 0 0 4px var(--t-focus);
}

.pt-check-box { width: 18px; height: 18px; border: 1.5px solid rgba(29, 27, 34, .3); background: #fff; }
.pt-check-text { font-size: 14px; }

/* ---- Buttons ---- */
.pt-btn { height: 50px; font-weight: 700; font-size: 16px; letter-spacing: .3px; }
.pt-btn-main {
  position: relative;
  overflow: hidden;
  gap: 10px;
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.pt-card-login .pt-btn-main::after {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--i-arrow) center / contain no-repeat;
  transition: transform .2s;
}
/* Sect colours along the bottom edge of the main button. */
.pt-btn-main::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--sects);
}
.pt-btn-main:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 28px -10px rgba(22, 20, 27, .75); }
.pt-btn-main:hover:not(:disabled)::after { transform: translateX(4px); }
.pt-btn-main:active:not(:disabled) { transform: translateY(0); }

/* "Chưa có tài khoản?" divider above the register button. */
.pt-form .pt-register { position: relative; margin-top: 34px; }
.pt-register::before {
  content: "Chưa có tài khoản?";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  font: 500 12.5px/1 var(--t-sans);
  color: var(--t-muted);
  text-align: center;
  background: linear-gradient(var(--t-soft-border), var(--t-soft-border)) left 50% / calc(50% - 76px) 1px no-repeat,
    linear-gradient(var(--t-soft-border), var(--t-soft-border)) right 50% / calc(50% - 76px) 1px no-repeat;
}
.pt-btn-soft:hover { background: #f3f1f6; border-color: rgba(29, 27, 34, .35); }

/* ---- Server list: roomier tiles than the original 5-column grid ---- */
.pt-card-servers .pt-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pt-card-servers .pt-server { min-height: 64px; padding: 10px 12px; }
.pt-card-servers .pt-card-title { margin-bottom: 14px; }
.pt-server { border-radius: var(--t-radius-sm); transition: transform .12s, box-shadow .15s, border-color .15s; }
.pt-server:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(22, 20, 27, .45); }
.pt-server.on { border-color: var(--sect-3); box-shadow: 0 0 0 3px var(--t-focus); }
.pt-server-label { color: var(--sect-4); }

@media (max-width: 760px), (max-height: 520px) and (orientation: landscape) {
  .pt-card { padding: 30px 20px 20px; }
  .pt-card-title { font-size: 26px; }
}
