    :root{
      --brand:#6B5BA8;
      --text:#1a1a1a;
      --muted:#6a758f;
      --link:#E5EBF9;
      --link-hover:#ffffff;
      --field-border:#b9c6eb;
      --field-focus:#8ea1d9;
      --card-bg:#ffffff;
      --radius:14px;
      --field-h:46px;
    }

    /* Reset / base */
    *{box-sizing:border-box}
    html,body{height:100%;margin:0}
    body{
      font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
      color:var(--text);
      overflow:hidden;                /* no page scroll */
      background:#f5f7fb;
    }
    /* Hide scrollbars just in case */
    html{scrollbar-width:none}
    html::-webkit-scrollbar{display:none}

    /* Layout */
    .split{
      height:100dvh;
      display:flex;
      align-items:stretch;
      justify-content:stretch;
      overflow:hidden;               /* ensure no internal scrollbars appear */
    }

    /* Left (60%) — background image with slight blur; centered text */
    .left{
      position:relative;
      flex:0 0 60%;
      display:block;
      overflow:hidden;
      color:#fff;
    }
    /* Separate child for the background so text doesn't blur */
    .left .bg{
      position:absolute; inset:0;
      background:url("../img/earthchild.jpg") center/cover no-repeat;
      filter:blur(2px);
      transform:scale(1.03); /* trim blur edges */
    }
    /* Soft color overlay for contrast */
    .left::after{
      content:"";
      position:absolute; inset:0;
      background:linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
    }
    .left .content{
      position:relative; /* above bg and overlay */
      height:100%;
      display:grid;
      place-items:center;
      padding:24px;
      text-align:center;
    }
    .left h1{
      margin:0 0 10px 0;
      font-weight:600;
      letter-spacing:.2px;
	  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .left p{
      margin:0;
      max-width:46ch;
      line-height:1.45;
    }

    /* Right (40%) — brand background with centered card */
    .right{
      flex:0 0 40%;
      background:var(--brand);
      display:grid;
      place-items:center;
      padding:24px;
    }
    .panel{
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
      background:var(--card-bg);
      border:1px solid #e7eaf7;
      border-radius:var(--radius);
      box-shadow:0 10px 30px rgba(20,30,60,.15);
      padding:24px 22px 20px 22px;
    }

    .logo-wrap{
      display:grid;
      place-items:center;
      margin-top:-6px;
      margin-bottom:14px;
    }
    .logo-wrap img{
      height:100px; width:auto; display:block;
    }

    /* Form */
    .form{
      display:grid;
      gap:14px;
    }
    .field{display:grid; gap:6px}
    .label{font-size:14px; font-weight:600; color:#1f284a}
    .input{
      height:var(--field-h);
      border:1px solid var(--field-border);
      border-radius:10px;
      padding:0 12px;
      font:inherit; color:inherit;
      outline:none; background:#fff;
      width:100%;
    }
    .input:focus{
      border-color:var(--field-focus);
      box-shadow:0 0 0 3px color-mix(in oklab, var(--field-focus) 30%, transparent);
    }

    /* Password with show/hide button */
    .pw-wrap{
      position:relative;
      display:flex;
      align-items:center;
    }
    .pw-wrap input{width:100%}
    .pw-toggle{
      position:absolute;
      right:6px; top:50%;
      transform:translateY(-50%);
      height:34px; min-width:34px;
      border:none; border-radius:8px;
      background:#f1f4ff;
      color:#333; cursor:pointer;
      padding:0 10px; font-weight:600;
    }
    .pw-toggle:hover{filter:brightness(.98)}

    .submit{
      height:var(--field-h);
      border:none; border-radius:10px;
      background:#5b7de0; color:#fff;
      font-weight:700; cursor:pointer;
    }
    .submit:hover{filter:brightness(.98)}

    /* Links row */
    .links{
      display:flex;
      justify-content:space-between;
      gap:10px;
      flex-wrap:wrap;
      margin-top:2px;
      font-weight:600;
    }
    .links a{
      color:var(--brand);
      text-decoration:none;
    }
    .links a:hover{color:#4c3f8a; text-decoration:underline}

    /* Policy line */
    .policy{
      margin-top:4px;
      font-size:12px;
      color:var(--muted);
      text-align:center;
    }
    .policy a{
      color:#1473CC;
      text-decoration:none;
      font-weight:700;
    }
    .policy a:hover{color:#2D90ED; text-decoration:underline}

    /* Small helper text for errors (optional placeholder) */
    .error{font-size:12px; color:#c65353; display:none}

    /* Responsive — hide the left side on smaller screens; keep the right centered */
    @media (max-width: 1100px){
      .left{display:none}
      .right{flex:1 1 auto; width:100%}
      .panel{width:min(520px, 92vw)}
    }

    /* Tiny screens: make sure nothing causes overflow */
    @media (max-width: 360px){
      .pw-toggle{padding:0 8px}
      .panel{padding:20px 16px}
    }
	
/* Error notification popup (top-centered, responsive) */
.notice {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: min(680px, 92vw);
  padding: 10px 12px;
  background: #ffe8e8;
  border: 1px solid #e49797;
  color: #6b1d1d;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(20,30,60,.18);
}
.notice[hidden]{ display:none; }

.notice-ico{
  width: 24px; height: 24px; display:block;
}
.notice-msg{
  font-weight: 600; line-height: 1.35;
}
.notice-x{
  border: none; background: transparent; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px; line-height: 0;
}
.notice-x:hover{ background: rgba(0,0,0,.06); }

.notice:focus {
  outline: none;
  box-shadow: none;
}


/* Small screens */
@media (max-width: 1100px){
  .left{display:none}
  .right{flex:1 1 auto; width:100%}
  /* was: .panel{width:min(520px, 92vw)} */
  .panel{
    width: 100%;
    max-width: 520px;
    margin-inline: auto; /* keep it centered */
  }
}

@media (max-width: 1100px){
  .notice{
    max-width: none;         /* allow exact width from JS */
    box-sizing: border-box;  /* include padding/border in set width */
  }
  .right{ padding-inline: clamp(12px, 4vw, 24px); }
}