/* css/signup.css */

/* Popup styling (keeps your existing look) */
.popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #007bff;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  font-family: sans-serif;
  pointer-events: none;
  max-width: 320px;
}

.popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Main layout styling (same visual language as login) --- */
: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;
}

/* 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;
}

/* LEFT: white card */
.auth-card {
  flex: 0 0 440px;
  background: #ffffff;
  border-radius: var(--card-radius);
  /* use card body padding rather than outer padding */
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(15, 23, 42, 0.04);
  color: #0b1230;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* card-body spacing */
.auth-card .card-body {
  padding: 1.75rem;
}

/* headings and text */
h3 {
  color: #0b1230;
  font-weight: 600;
}
.text-muted {
  color: var(--muted) !important;
}

/* form controls */
.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 same picture as login (path relative to css/) */
.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 center;
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

/* Slight overlay so the image reads well but stays bright */
.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;
}

/* 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: 240px;
    border-radius: 10px;
    background-position: center center;
  }

  .popup {
    right: 16px;
    left: 16px;
    bottom: 18px;
  }
}
