/* Reset-ish (kept small) */
* { box-sizing: border-box; }
html,body,#root { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #f3f6f9;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page layout */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 560px 1fr; /* increased width of form side */
}

/* Small screens - stack */
@media (max-width: 880px) {
  .page { grid-template-columns: 1fr; }
  .visual { display: none; }
}

/* Auth (left) */
.auth {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* push form towards left padding */
  padding: 48px 36px 48px 80px; /* more left padding */
  background: linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
}

.auth__card {
  width: 100%;
  max-width: 500px; /* slightly bigger max width */
}

.logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 18px;
}
.logo svg { color: #2563eb; border-radius: 6px; }

/* Headings */
.title {
  margin: 6px 0 4px;
  font-size: 28px;
  letter-spacing: -0.2px;
}
.subtitle {
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 14px;
}

/* Form fields */
.form { display: grid; gap: 14px; }
.field { display: block; }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #374151;
}
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: box-shadow .18s ease, border-color .12s ease;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
.input:focus {
  border-color: #2563eb;
  box-shadow: 0 8px 30px rgba(37,99,235,0.08);
}

/* Row with remember & forgot */
.form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: -6px;
}
.checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #374151;
}
.checkbox input { width: 16px; height: 16px; accent-color: #2563eb; }
.link { color: #2563eb; text-decoration: none; font-size: 14px; }

/* Button */
.btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(90deg,#1432b8,#435be4);
  color: white;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(37,99,235,0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(37,99,235,0.14); }

/* Separator */
.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 4px;
  color: #9ca3af;
  font-size: 13px;
}
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eef2f6;
}

/* Social buttons */
.socials { display: flex; gap: 10px; margin-top: 6px; }
.social {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.social:hover { box-shadow: 0 8px 20px rgba(2,6,23,0.04); transform: translateY(-2px); }

/* Signup line */
.signup {
  margin-top: 18px;
  color: #6b7280;
  font-size: 14px;
}
.signup a { color: #2563eb; text-decoration: none; }

/* Visual (right) */
.visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.visual__image {
  position: absolute;
  inset: 0;
  background-image: url('./rmi_back_2.jpg'); /* replace with your image */
  background-size: cover;
  background-position: center;
  filter: contrast(0.95) saturate(0.95);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.visual__overlay {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(10,11,13,0.00) 0%, rgba(7,9,20,0.55) 60%, rgba(7,9,20,0.72) 100%);
  color: #fff;
  padding: 48px 36px;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.visual__overlay h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.visual__overlay p { margin: 0; color: rgba(255,255,255,0.92); font-size: 15px; }

/* small caption */
.visual__attribution {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* small polished touches */
.input::placeholder { color: #9ca3af; }
a { transition: opacity .12s ease; }
a:hover { opacity: 0.9; }

.error-message {
  background: #852424;
  color: #ffffff;
  padding: 14px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 500;
}

.password-wrapper {
  position: relative;
}

.password-wrapper .input {
  width: 100%;
  padding-right: 40px; /* make room for the icon */
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  user-select: none;
}

.toggle-password:hover {
  opacity: 1;
}
