/* ==========================================================
   Sanix Formulation Pvt Ltd - Login Stylesheet
   ========================================================== */
:root {
  --orange: #F7884D;
  --orange-dark: #E9702F;
  --orange-soft: #FEEFE6;
  --green: #85B957;
  --green-soft: #EEF6E5;
  --blue: #2B9ADB;
  --blue-dark: #1B7DB8;
  --blue-soft: #E5F3FB;
  --red: #E5484D;
  --red-soft: #FDECEC;
  --ink: #1E2A3B;
  --muted: #7A8699;
  --line: #E8ECF2;
  --bg: #F5F7FA;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  font-size: 14.5px;
  min-height: 100vh;
  background: var(--bg);
}

.login {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* ---------- Left Brand Panel ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 55%, #D9601F 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: rgba(133, 185, 87, .35);
  right: -140px;
  top: -120px;
}

.hero::after {
  width: 340px;
  height: 340px;
  background: rgba(43, 154, 219, .35);
  left: -110px;
  bottom: -110px;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-logo {
  background: #fff;
  border-radius: 16px;
  padding: 14px 22px;
  display: inline-block;
  align-self: flex-start;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.hero-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.hero h2 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.8px;
  margin-bottom: 14px;
}

.hero p {
  font-size: 16px;
  opacity: .92;
  max-width: 420px;
  line-height: 1.6;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.chips span {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero small {
  opacity: .85;
}

/* ---------- Right Form Panel ---------- */
.panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background: #fff;
}

.box {
  width: 100%;
  max-width: 410px;
}

.mobile-logo {
  display: none;
  margin-bottom: 26px;
}

.mobile-logo img {
  height: 44px;
  width: auto;
}

.box h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.box .sub {
  color: var(--muted);
  margin: 6px 0 28px;
}

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--red-soft);
  color: var(--red);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 13.5px;
}

.alert-success {
  background: var(--green-soft);
  color: var(--green);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: .2s;
}

.input:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.input i {
  color: var(--muted);
  font-size: 18px;
}

.input input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  color: var(--ink);
}

.input .toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.input .toggle:hover i {
  color: var(--orange);
}

.field.error .input {
  border-color: var(--red);
}

.err {
  color: var(--red);
  font-size: 12.5px;
  margin-top: 6px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 24px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4A5668;
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
  cursor: pointer;
}

.row a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.row a:hover {
  color: var(--blue-dark);
}

.submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font: 700 15.5px 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(247, 136, 77, .38);
  transition: .2s;
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(247, 136, 77, .45);
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 28px;
}

.stripe {
  height: 4px;
  border-radius: 4px;
  margin: 0 auto 14px;
  width: 120px;
  background: linear-gradient(90deg, var(--orange) 0 40%, var(--green) 40% 70%, var(--blue) 70% 100%);
}

@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
  }
  .hero {
    display: none;
  }
  .mobile-logo {
    display: block;
  }
  .panel {
    align-items: start;
    padding-top: 48px;
  }
}
