/* Login — iHorse (cores do logo, fundo branco) */
:root{
  --bg:#ffffff;
  --text:#0b0b0b;
  --muted:#5c636a;

  --primary:#f3b21d;        /* amarelo do logo */
  --primary-2:#111111;      /* preto */
  --soft:#fff3d0;
  --input:#f6f7f8;
  --border:#e7eaee;

  --shadow: 0 18px 50px rgba(0,0,0,.10);
  --radius:18px;
  --radius-sm:12px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
}

.top-line{height:4px;background:var(--primary);}

.page{
  min-height:calc(100% - 4px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 18px;
}

.panel{
  width:min(1040px, 100%);
  background:#fff;
  border-radius:24px;
  box-shadow:var(--shadow);
  border:1px solid rgba(0,0,0,.08);
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  overflow:hidden;
}

.panel__left{
  padding:34px 28px;
  background:
    radial-gradient(500px 260px at 20% 20%, rgba(243,178,29,.28), transparent 60%),
    radial-gradient(520px 300px at 70% 10%, rgba(0,0,0,.08), transparent 55%),
    linear-gradient(180deg, rgba(243,178,29,.10), rgba(255,255,255,.85));
  border-right:1px solid rgba(0,0,0,.06);
}

.panel__right{
  padding:34px 36px 28px;
  background:#fff;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
}

.brand__logo{
  width:190px;
  height:auto;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  background:#fff;
}

.brand__text{display:flex;flex-direction:column;gap:6px}
.brand__name{font-weight:900;letter-spacing:.2px;font-size:22px}
.brand__tag{color:var(--muted);font-size:12px}

.bullets{
  margin-top:18px;
  display:grid;
  gap:10px;
  max-width:420px;
}

.bullet{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background: rgba(255,255,255,.70);
  border:1px solid rgba(0,0,0,.06);
}

.bullet__dot{
  width:10px;height:10px;border-radius:999px;
  background:var(--primary);
  box-shadow: 0 0 0 6px rgba(243,178,29,.22);
}

.bullet__text{font-weight:600;color:#1b1b1b;font-size:13px}

.card-note{
  margin-top:14px;
  padding:14px 14px;
  border-radius:16px;
  background: rgba(17,17,17,.04);
  border:1px solid rgba(17,17,17,.08);
  max-width:520px;
}
.card-note__title{font-weight:900;margin-bottom:6px}
.card-note__text{color:var(--muted);font-size:12px;line-height:1.4}
.card-note code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 12px}

.title{
  font-size:34px;
  line-height:1.1;
  margin:0 0 6px;
  letter-spacing:-0.02em;
}
.subtitle{
  margin:0 0 22px;
  color:var(--muted);
  font-size:14px;
}

.form{max-width:520px}
.label{
  display:block;
  font-weight:700;
  font-size:12px;
  color:#1a1a1a;
  margin:0 0 8px;
}

.input{
  width:100%;
  padding:13px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  background:var(--input);
  font-size:14px;
  outline:none;
  transition:border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.input:focus{
  border-color: rgba(243,178,29,.85);
  box-shadow: 0 0 0 4px rgba(243,178,29,.22);
  background:#fff;
}
.input::placeholder{color:#9aa0a6}

.password-wrap{margin-top:14px;}
.password-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.input--password{flex:1}

.icon-btn{
  width:44px;height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  display:grid;place-items:center;
  transition:transform .12s ease, box-shadow .12s ease;
  color: #111;
}
.icon-btn:hover{transform:translateY(-1px); box-shadow:0 10px 20px rgba(0,0,0,.08);}
.icon{width:20px;height:20px;}
.icon-eye-off{display:none;}
.icon-btn[data-state="shown"] .icon-eye{display:none;}
.icon-btn[data-state="shown"] .icon-eye-off{display:block;}

.help{
  margin:10px 0 14px;
  color:var(--muted);
  font-size:12px;
}

.btn{
  width:100%;
  height:46px;
  border:none;
  border-radius:12px;
  background: var(--primary);
  color:#111;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow: 0 14px 26px rgba(243,178,29,.25);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  position:relative;
}
.btn:hover{transform:translateY(-1px); filter:saturate(1.02);}
.btn:active{transform:translateY(0);}
.btn[disabled]{opacity:.65; cursor:not-allowed; transform:none; box-shadow:none;}

.btn__spinner{
  width:16px;height:16px;
  border-radius:999px;
  border:2px solid rgba(17,17,17,.25);
  border-top-color:rgba(17,17,17,.85);
  display:none;
  animation: spin .9s linear infinite;
}
.btn.is-loading .btn__spinner{display:inline-block;}
.btn.is-loading .btn__text{opacity:.88}
@keyframes spin{to{transform:rotate(360deg)}}

.msg{
  margin:12px 0 0;
  min-height:18px;
  font-size:13px;
  color:var(--muted);
}
.msg.is-error{color:#b42318}
.msg.is-ok{color:#027a48}

.footer{
  margin-top:18px;
  color:#404040;
  font-size:12px;
}

@media (max-width: 980px){
  .panel{grid-template-columns:1fr}
  .panel__left{order:2}
  .panel__right{order:1}
  .brand__logo{width:170px}
}
@media (max-width: 520px){
  .panel__right{padding:26px 18px 22px}
  .panel__left{padding:26px 18px}
  .title{font-size:28px}
  .brand__logo{width:150px}
}
