/* css/login.css
   Modern left-form / right-image layout, WHITE card background.
   Keeps your HTML IDs/classes exactly the same so js/login.js works.
*/

:root {
  --card-radius: 12px;
  --card-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
  --muted: #6b7280;
  --accent-grad: linear-gradient(90deg, #4f76ff 0%, #6a66ff 100%);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  --max-width: 1100px;
}

/* page background white */
body.bg-white {
  background: #ffffff;
  color: #0f1724;
}

/* viewport */
.auth-viewport {
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* container (two-column) */
.auth-container {
  display: flex;
  gap: 1.75rem;
  width: 100%;
  max-width: var(--max-width);
  align-items: stretch;
  margin: 0 auto;
}

/* LEFT: white card */
.auth-card {
  flex: 0 0 440px;
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 1.75rem 1.75rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(15, 23, 42, 0.04);
  color: #0b1230;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.brand-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  color: orange;
}

/* headings and text */
h3 {
  color: #0b1230;
  font-weight: 600;
}
.text-muted {
  color: var(--muted) !important;
}

/* Inputs & labels (lighter style but readable) */
.form-label {
  color: var(--muted);
  font-weight: 500;
}
.form-control {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #0b1230;
  height: 46px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.form-control:focus {
  outline: none;
  border-color: rgba(79, 118, 255, 0.9);
  box-shadow: 0 8px 20px rgba(79, 118, 255, 0.12);
}

/* Buttons */
.btn-primary {
  background-image: var(--accent-grad);
  border: none;
  border-radius: 8px;
  height: 48px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(79, 118, 255, 0.12);
}
.btn-outline-secondary {
  border-radius: 8px;
}

/* RIGHT: image panel using your picture. Path is relative to css/ file */
.hero-image {
  flex: 1 1 520px;
  min-height: 540px;
  border-radius: var(--card-radius);
  background-image: url("../picture/login_picture.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; /* ensures important part shows at right end */
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

/* very light overlay to keep the image crisp but slightly softened on the left */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 28%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
}

/* side popup (keeps original but tuned) */
.side-popup {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  z-index: 1000;
  max-width: 300px;
  display: none;
}

/* responsive: stack on small screens */
@media (max-width: 900px) {
  .auth-container {
    flex-direction: column;
    gap: 1rem;
  }

  .auth-card {
    width: 100%;
    flex: none;
  }

  .hero-image {
    min-height: 220px;
    border-radius: 10px;
    background-position: center center;
  }
}
