*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #1e1e1e; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Brand Soft Beige Background applied to right panel */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: #f5f1eb; }

/* Left hero - Workspace/Portal Context */
.hero {
  position: relative; overflow: hidden;
  background: #1e1e1e url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80') center/cover no-repeat;
  border-radius: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,.1) 70%);
}
.hero__content { position: absolute; left: 48px; right: 48px; bottom: 48px; color: #fff; z-index: 2; }
.hero__title { font-size: clamp(32px, 3.4vw, 52px); font-weight: 700; line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.hero__subtitle { font-size: 15px; font-weight: 400; line-height: 1.6; opacity: .92; margin: 0 0 32px; max-width: 420px; }
.hero__dots { display: flex; align-items: center; gap: 10px; }
.hero__dots span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.3); }
.hero__dots .active { width: 34px; background: #d9b75c; }

/* Right form */
.panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.form { width: 100%; max-width: 450px; background: #ffffff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
.form__logo { max-height: 42px; margin-bottom: 24px; display: block; }
.form__title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: #1e1e1e; margin: 0 0 8px; }
.form__subtitle { font-size: 14px; color: #666666; margin: 0 0 28px; }

/* Error Message Alert */
.alert-error { background: #ffe4e6; color: #e11d48; padding: 12px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 500; text-align: center; border: 1px solid #fda4af; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: #1e1e1e; margin-bottom: 8px; }
.input { position: relative; }
.input input {
  width: 100%; height: 56px; border-radius: 10px; border: 1px solid #e5dfd3; background: #faf9f7;
  padding: 0 18px; font: 500 15px 'Poppins', sans-serif; color: #1e1e1e; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input input::placeholder { color: #a3a6b8; font-weight: 400; }
.input input:focus { border-color: #1e1e1e; box-shadow: 0 0 0 4px rgba(30,30,30,.08); background: #fff; }
.input--password input { padding-right: 52px; }
.toggle-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: #666666; font-size: 18px; padding: 6px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; transition: color .2s, background .2s;
}
.toggle-eye:hover { color: #1e1e1e; background: #f5f1eb; }

.row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 28px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #1e1e1e; cursor: pointer; user-select: none; font-weight: 500; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c9ccda; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; transition: all .2s;
}
.check input:checked + .box { background: #1e1e1e; border-color: #1e1e1e; }
.check input:checked + .box::after { content: "\F633"; font-family: "bootstrap-icons"; }

.btn {
  width: 100%; height: 56px; border: 0; border-radius: 10px; background: #1e1e1e; color: #fff;
  font: 600 15px 'Poppins', sans-serif; letter-spacing: .01em; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: #000; box-shadow: 0 10px 24px -12px rgba(30,30,30,.55); }
.btn:active { transform: translateY(1px); }

.signature-footer { margin-top: 32px; font-size: 16px; color: rgba(30,30,30,0.15); font-weight: 700; text-align: center; letter-spacing: 0.5px; }

/* Responsive */
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; background: #fff; }
  .hero { min-height: 30vh; border-radius: 0 0 24px 24px; }
  .hero__content { left: 28px; right: 28px; bottom: 28px; }
  .panel { padding: 40px 24px; align-items: flex-start; }
  .form { box-shadow: none; padding: 0; }
}
@media (max-width: 480px) {
  .form__title { font-size: 24px; }
  .hero { min-height: 25vh; }
}