:root{
  --black:#06070a;
  --black-2:#080a0f;
  --panel:#0b0e16;
  --panel-border:rgba(197,208,230,.12);
  --text:#f7f5ef;
  --muted:#9da0aa;
  --muted-2:#777b87;
  --gold:#d8ad3f;
  --gold-light:#efc86b;
  --gold-deep:#9f7621;
  --line:rgba(255,255,255,.09);
  --serif:"Playfair Display", Georgia, serif;
  --sans:"Inter", system-ui, sans-serif;
  --mono:"DM Mono", monospace;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--black);color:var(--text)}
body{
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
button,input{font:inherit}
button{cursor:pointer}
.login-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:49% 51%;
  background:
    radial-gradient(circle at 75% 78%,rgba(41,48,66,.10),transparent 34%),
    var(--black);
}
.brand-panel{isolation:isolate;
  position:relative;
  min-height:100vh;
  border-right:1px solid rgba(255,255,255,.09);
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 15%,rgba(28,31,40,.12),transparent 32%),
    #07080c;
}
.ray-field{
  position:absolute;
  pointer-events:none;
  z-index:0;
  width:540px;
  height:540px;
  opacity:.72;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(155,162,177,.045) 0deg,
      rgba(155,162,177,.045) .55deg,
      transparent .55deg,
      transparent 4.1deg
    );
  -webkit-mask-image:radial-gradient(
    circle at center,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.64) 28%,
    rgba(0,0,0,.25) 53%,
    transparent 72%
  );
  mask-image:radial-gradient(
    circle at center,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.64) 28%,
    rgba(0,0,0,.25) 53%,
    transparent 72%
  );
}
.ray-top-left{
  left:-200px;
  top:-200px;
  transform:rotate(8deg);
  opacity:.68;
}
.ray-bottom-left{
  width:560px;
  height:560px;
  right:-390px;
  bottom:-390px;
  transform:rotate(192deg);
  opacity:.055;
}
.login-brand{
  position:absolute;
  top:47px;
  left:28px;
  width:205px;
  z-index:3;
}
.login-brand::before{
  content:"";
  position:absolute;
  left:-22px;
  top:-22px;
  width:112px;
  height:112px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(216,173,63,.035) 0%, rgba(216,173,63,.012) 28%, transparent 68%);
  filter:blur(2px);
  pointer-events:none;
}
.login-brand img{
  width:100%;
  height:auto;
  display:block;
  filter:drop-shadow(0 7px 18px rgba(216,173,63,.08));
}
.console-copy{
  position:absolute;
  left:28px;
  right:46px;
  top:50%;
  transform:translateY(-34%);
  max-width:450px;
  z-index:2;
}
.eyebrow,.card-eyebrow{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.30em;
  color:var(--gold);
  font-size:11px;
  font-weight:400;
}
.eyebrow{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}
.eyebrow span{
  display:block;
  width:22px;
  height:1px;
  background:var(--gold);
}
.console-copy h1{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(48px,4.2vw,72px);
  line-height:.92;
  font-weight:400;
  letter-spacing:-.025em;
}
.console-copy h1 em{
  color:var(--gold-light);
  font-style:italic;
}
.console-copy p{
  margin:27px 0 0;
  max-width:450px;
  color:#a8a9b0;
  font-size:14px;
  line-height:1.75;
  font-weight:400;
}
.copyright{
  position:absolute;
  left:28px;
  bottom:28px;
  z-index:3;
  color:#686b75;
  font-size:11px;
  letter-spacing:.01em;
}
.form-panel{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  position:relative;
  background:
    radial-gradient(circle at 100% 0%,rgba(255,255,255,.018),transparent 35%),
    #07080c;
}
.login-card{
  width:min(414px,100%);
  padding:39px 40px 37px;
  border:1px solid var(--panel-border);
  border-radius:16px;
  background:
    linear-gradient(180deg,rgba(15,19,29,.98),rgba(10,13,21,.98));
  box-shadow:0 35px 90px rgba(0,0,0,.34);
}
.card-eyebrow{margin-bottom:16px}
.login-card h2{
  margin:0;
  font-family:var(--serif);
  font-size:35px;
  line-height:1;
  font-weight:400;
  letter-spacing:-.015em;
}
.card-intro{
  margin:10px 0 30px;
  color:#858a96;
  font-size:14px;
  line-height:1.45;
  max-width:285px;
}
.login-card label{
  display:block;
  margin:0 0 8px;
  color:#8b8e98;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.login-card input{
  width:100%;
  height:47px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:12px;
  outline:none;
  background:#06070a;
  color:#f5f4ef;
  padding:0 15px;
  font-size:15px;
  transition:border-color .25s,box-shadow .25s;
}
.login-card input::placeholder{color:#4d515b}
.login-card input:focus{
  border-color:rgba(216,173,63,.65);
  box-shadow:0 0 0 3px rgba(216,173,63,.07);
}
.login-card label + input{margin-bottom:20px}
.password-wrap{position:relative;margin-bottom:20px}
.password-wrap input{padding-right:48px}
.eye{
  position:absolute;
  right:11px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  background:transparent;
  border:0;
  color:#6f737d;
}
.eye svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.35;
}
.continue-btn{
  width:100%;
  height:43px;
  border:0;
  border-radius:999px;
  background:linear-gradient(100deg,#ddb535,#efca79);
  color:#17130a;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  font-size:15px;
  font-weight:500;
  box-shadow:0 12px 30px rgba(216,173,63,.12);
  transition:transform .25s,box-shadow .25s,filter .25s;
}
.continue-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 15px 35px rgba(216,173,63,.20);
  filter:saturate(1.04);
}
.continue-btn b{
  font-size:22px;
  line-height:0;
  font-weight:400;
}
.form-message{
  min-height:18px;
  margin-top:10px;
  color:#c7a75d;
  font-size:11px;
}
.card-divider{
  height:1px;
  background:var(--line);
  margin:19px 0 23px;
}
.secure-note{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#626671;
  font-size:11px;
  line-height:1.5;
}
.note-title{
  font-family:var(--mono);
  letter-spacing:.12em;
  color:#777b85;
  font-size:10px;
}
@media(max-width:900px){
  .login-shell{grid-template-columns:1fr}
  .brand-panel{isolation:isolate;
    min-height:48vh;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.09);
  }
  .console-copy{
    top:auto;
    bottom:48px;
    transform:none;
    right:28px;
  }
  .console-copy h1{font-size:clamp(40px,8vw,60px)}
  .console-copy p{margin-top:18px;max-width:600px}
  .form-panel{min-height:52vh;padding:34px 24px}
  .login-card{width:min(430px,100%)}
}
@media(max-width:560px){
  .brand-panel{isolation:isolate;min-height:55vh}
  .login-brand{top:28px;left:22px;width:178px}
  .console-copy{left:22px;right:22px;bottom:34px}
  .eyebrow{margin-bottom:15px}
  .console-copy h1{font-size:40px;line-height:.93}
  .console-copy p{font-size:12px;line-height:1.6}
  .copyright{left:22px;bottom:12px;font-size:9px}
  .form-panel{padding:24px 18px 34px}
  .login-card{padding:31px 24px 28px;border-radius:14px}
  .login-card h2{font-size:31px}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}

/* Responsive refinement — advisor console */
.login-shell,
.brand-panel,
.form-panel { min-width: 0; }

.login-brand { max-width: calc(100% - 44px); }
.console-copy h1 { overflow-wrap: normal; }

@media (max-width: 900px) {
  .login-shell { min-height: 100svh; }
  .brand-panel {
    min-height: 56svh;
    height: auto;
  }
  .form-panel {
    min-height: auto;
    padding: 42px 24px 52px;
  }
  .console-copy {
    top: auto;
    bottom: 54px;
    max-width: 650px;
  }
  .console-copy h1 { font-size: clamp(42px, 7vw, 60px); }
  .console-copy p { max-width: 620px; }
  .copyright { bottom: 18px; }
}

@media (max-width: 600px) {
  .brand-panel {
    min-height: auto;
    height: auto;
    padding: 116px 22px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .login-brand {
    position: absolute;
    top: 25px;
    left: 22px;
    width: 170px;
  }
  .console-copy {
    position: relative;
    inset: auto;
    transform: none;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: .22em;
    margin-bottom: 16px;
  }
  .eyebrow span { width: 18px; }
  .console-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: .96;
    letter-spacing: -.03em;
  }
  .console-copy p {
    margin-top: 17px;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.65;
  }
  .copyright {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 22px;
    font-size: 9px;
  }
  .ray-top-left { left: -270px; top: -260px; }
  .ray-bottom-left { display: none; }

  .form-panel {
    padding: 28px 16px 38px;
    align-items: flex-start;
  }
  .login-card {
    width: 100%;
    padding: 28px 20px 25px;
    border-radius: 14px;
  }
  .card-eyebrow { font-size: 10px; margin-bottom: 14px; }
  .login-card h2 { font-size: 30px; }
  .card-intro {
    margin: 10px 0 25px;
    font-size: 13px;
  }
  .login-card input {
    height: 50px;
    font-size: 16px; /* prevents iOS Safari auto-zoom */
  }
  .login-card label + input { margin-bottom: 18px; }
  .password-wrap { margin-bottom: 18px; }
  .eye { width: 36px; height: 36px; right: 8px; }
  .continue-btn { height: 48px; min-height: 48px; }
  .card-divider { margin: 18px 0 20px; }
  .secure-note { font-size: 10px; }
}

@media (max-width: 380px) {
  .brand-panel { padding-left: 18px; padding-right: 18px; padding-top: 108px; }
  .login-brand { left: 18px; width: 152px; }
  .console-copy h1 { font-size: 34px; }
  .console-copy p { font-size: 11px; }
  .form-panel { padding-left: 12px; padding-right: 12px; }
  .login-card { padding-left: 17px; padding-right: 17px; }
}

@media (max-height: 700px) and (max-width: 900px) {
  .brand-panel { padding-top: 104px; }
  .console-copy h1 { font-size: clamp(34px, 6vw, 46px); }
  .console-copy p { margin-top: 13px; line-height: 1.5; }
  .copyright { margin-top: 14px; }
}

@media (orientation: landscape) and (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr 1fr; }
  .brand-panel {
    min-height: 100svh;
    border-right: 1px solid rgba(255,255,255,.09);
    border-bottom: 0;
    padding: 100px 28px 28px;
  }
  .login-brand { top: 24px; left: 24px; }
  .console-copy { margin-top: auto; }
  .console-copy h1 { font-size: clamp(32px, 5vw, 48px); }
  .console-copy p { font-size: 11px; line-height: 1.5; }
  .copyright { margin-top: 14px; }
  .form-panel { min-height: 100svh; padding: 24px; align-items: center; }
}
