
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-orange: #ff7a00;
  --brand-gold: #ffb11a;
  --brand-red: #ff5a2a;
  --brand-dark: #1d1513;
  --brand-dark-2: #2b1e1a;
  --surface: #ffffff;
  --soft: #fff6ee;
  --border: #f3dfcf;
  --text: #241815;
  --muted: #806b62;
}

body {
  min-height: 100vh;
  display: flex;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255,177,26,.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255,90,42,.10), transparent 24%),
    #f8f5f2;
  color: var(--text);
}

.left {
  width: 46%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.22), transparent 16%),
    radial-gradient(circle at 82% 72%, rgba(255,255,255,.12), transparent 18%),
    linear-gradient(145deg, #ff850f 0%, #ff7a00 28%, #ff9f1c 58%, #ff5a2a 100%);
}

.left::before,
.left::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.left::before {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -50px;
  background: rgba(255,255,255,.12);
}

.left::after {
  width: 160px;
  height: 160px;
  bottom: 28px;
  right: 48px;
  background: rgba(27,20,18,.14);
  filter: blur(6px);
}

.left-icon {
  position: relative;
  z-index: 1;
  font-size: 68px;
  margin-bottom: 18px;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.18));
}

.left h1 {
  position: relative;
  z-index: 1;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.9px;
  margin-bottom: 12px;
}

.left p {
  position: relative;
  z-index: 1;
  max-width: 470px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
}

.features {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

.feat i { font-size: 18px; }

.right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.login-box {
  width: 100%;
  max-width: 460px;
  padding: 38px 34px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,242,.96));
  border: 1px solid rgba(255,122,0,.12);
  box-shadow: 0 30px 80px rgba(33,25,20,.12);
}

.login-box::before {
  content: "Painel do lojista";
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ae5500;
  background: linear-gradient(135deg, #fff0dc, #ffe8ca);
  border: 1px solid rgba(255,122,0,.12);
}

.login-box h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.7px;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.login-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 30px;
}

.form-group { margin-bottom: 18px; }

label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: #6f5a51;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fffdfb;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

input::placeholder { color: #b49d92; }

input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255,122,0,.12);
  transform: translateY(-1px);
  background: #fff;
}

.btn-login {
  width: 100%;
  margin-top: 8px;
  padding: 15px 18px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold) 52%, var(--brand-red));
  box-shadow: 0 18px 34px rgba(255,122,0,.26);
  transition: transform .18s, filter .18s, box-shadow .18s;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 22px 40px rgba(255,122,0,.32);
}

.btn-login:disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

.error-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220,38,38,.18);
  background: linear-gradient(180deg, #fff2f2, #ffebeb);
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .left { width: 42%; padding: 40px; }
  .left h1 { font-size: 34px; }
}

@media (max-width: 768px) {
  body { display: block; }
  .left { display: none; }
  .right { min-height: 100vh; padding: 22px; }
  .login-box { padding: 28px 22px; border-radius: 24px; }
  .login-box h2 { font-size: 26px; }
}
