/* ==========================================================================
   login.css — 登入 / 忘記密碼 頁面專屬樣式
   ========================================================================== */
.login-wrap {
    min-height: 100vh;
    display: grid;
    /* 左文案＋右登入卡置中成一組，欄距 80px，避免大螢幕左右分太開 */
    grid-template-columns: minmax(0, 600px) 420px;
    justify-content: center;
    align-content: center;   /* 整組垂直置中 */
    align-items: start;      /* 文案與登入卡上緣對齊 */
    column-gap: 80px;
    padding: 48px 48px 40px;
    background: linear-gradient(150deg, #10262B 0%, #0B5A54 55%, #12A594 130%);
    position: relative;
    overflow: hidden;
  }
  .login-wrap::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
  }
  .login-wrap::before {
    content: "";
    position: absolute;
    left: -80px;
    top: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .045);
    pointer-events: none;
  }
  .login-hero {
    color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
  }
  .login-hero-inner { max-width: 560px; }

  .hero-brand {
    position: static;        /* 與文案同一條左邊線 */
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hero-brand .mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
  }
  .hero-brand .txt { font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; }

  .login-hero .eyebrow {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .24em;
    color: var(--brand-light);
    margin-bottom: 18px;
  }
  .login-hero h1 { font-size: 2.75rem; line-height: 1.3; margin-bottom: 22px; letter-spacing: .01em; }
  .login-hero .lead { font-size: 1.08rem; line-height: 1.8; color: #BDE9D6; max-width: 36em; margin-bottom: 34px; }

  .hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-features li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 1rem;
    color: #E4F5EC;
  }
  .hero-features i { color: #5EEAD4; font-size: 1.15rem; flex: none; }

  .login-hero .facts {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
  }
  .login-hero .facts div {
    padding: 16px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(2px);
  }
  .login-hero .facts div b {
    display: block;
    font-size: 2.1rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }
  .login-hero .facts div span { font-size: .86rem; color: #9FD9C3; }

  .login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 1;
  }
  .login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 70px -16px rgba(3, 25, 23, .45), 0 4px 14px rgba(0, 0, 0, .12);
    padding: 40px 36px 32px;
  }
  .login-card-brand {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand-primary), #12A594);
    color: #fff;
    font-size: 22px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    box-shadow: 0 10px 22px -8px rgba(15, 118, 110, .5);
  }
  .login-card h2 { font-size: 1.5rem; margin-bottom: 4px; color: #0F3F32; }
  .login-card .sub { color: var(--text-sub); font-size: .9rem; margin-bottom: 28px; }
  .login-card .form-item { margin-bottom: 16px; }
  .login-card .row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: .86rem;
  }
  .login-card .row-between a { color: var(--brand-dark); }
  .login-card .row-between a:hover { text-decoration: underline; }

  .input-icon { position: relative; }
  .input-icon i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
  }
  .input-icon .fld { padding-left: 38px; }

  .login-card .btn-lg { border-radius: 12px; box-shadow: 0 10px 24px -10px rgba(15, 118, 110, .55); }

  .captcha {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .captcha .code {
    flex: none;
    width: 108px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: repeating-linear-gradient(115deg, #D9EDEA, #D9EDEA 6px, #BFE3DE 6px, #BFE3DE 12px);
    color: #0F3F32;
    font-weight: 700;
    letter-spacing: .26em;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-style: italic;
    user-select: none;
  }
  .login-foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.6;
  }
  @media (max-width: 1199px) {
    .login-wrap { grid-template-columns: minmax(0, 520px) 400px; column-gap: 48px; padding: 40px 32px; }
  }
  @media (max-width: 991px) {
    .login-wrap { grid-template-columns: 1fr; justify-content: stretch; align-items: start; padding: 24px 24px 40px; row-gap: 24px; }
    .login-hero { padding: 0; }
    .hero-brand { margin-bottom: 28px; }
    .login-hero-inner { max-width: none; }
    .login-hero h1 { font-size: 1.9rem; }
    .login-hero .lead { font-size: 1rem; margin-bottom: 24px; }
    .hero-features { margin-bottom: 28px; gap: 10px; }
    .hero-features li { font-size: .92rem; }
    .login-hero .facts { gap: 10px; }
    .login-hero .facts div { padding: 12px 16px; }
    .login-hero .facts div b { font-size: 1.6rem; }
  }
