/* Login page styles */



body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  color: #111;
}

.signin-container {
  display: flex;
  min-height: 100vh;
}

/* .signin-image {
  flex: 1;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
}

.signin-image img {
  width: 100%;
  max-width: 480px;
} */

.brand-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  font-weight: 700;
  font-size: 24px;
}

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

form {
  width: 100%;
  max-width: 380px;
}

h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.subtext {
  font-size: 14px;
  margin-bottom: 20px;
  color: #555;
}

.subtext a {
  color: #1abc9c;
  text-decoration: none;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"] {
  width: 85%;
  padding: 14px 40px 14px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.password-group i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-options a {
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.btn-signin {
  width: 100%;
  padding: 12px;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-signin:hover {
  background-color: #333;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .signin-container {
    flex-direction: column;
  }

  .signin-image {
    display: none;
  }

  .signin-form {
    padding: 60px 30px;
  }
}












/* Fill the left pane with the image */
.signin-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;          /* no need to center via flex anymore */
  background: #000;        /* fallback while image loads */
}

/* Make the <img> behave like a background cover */
.signin-image img {
  position: absolute;
  inset: 0;
  width: 142%;
  height: 100%;
  object-fit: cover;       /* <-- key: cover the pane */
  object-position: 85% 50%; /* adjust focal point as needed */
}

/* Optional: subtle dark overlay for readability */
.signin-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.35));
  pointer-events: none;
}

/* Keep the brand logo above the overlay */
.brand-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  font-weight: 700;
  font-size: 24px;
  color: #fff;             /* ensure visible on the image */
  z-index: 2;
}

/* Container and form stay the same, just ensuring full height */
.signin-container { display: flex; min-height: 100vh; }
.signin-form {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: #fff;
}

/* Inputs can keep your current style; no change needed */

/* Mobile: still hide the image section */
@media (max-width: 768px) {
  .signin-container { flex-direction: column; }
  .signin-image { display: none; }
  .signin-form { padding: 60px 30px; }
}



/* small brand logo at top-left */
.signin-image .brand-mark{
  position: absolute;
  top: 24px;
  left: 24px;
  height: 36px;                  /* control size here */
  width: auto;
  max-width: none;
  z-index: 3;                    /* above the hero */
  pointer-events: none;          /* no click behavior */
}

/* remove/override any generic rule like this if present:
   .signin-image img { width:100%; max-width:480px; } */







/* Add to your page CSS */
.form-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.35;
  background: #f3f4f6;
}
.form-message[data-type="success"] { background:#ecfdf5; color:#065f46; }
.form-message[data-type="error"]   { background:#fef2f2; color:#991b1b; }
.form-message[data-type="info"]    { background:#eff6ff; color:#1e40af; }






/* Terms / Policy disclaimer */
.form-terms{
  margin-top: 12px;
  padding-top: 6px;
  font-size: .875rem;           /* 14px-ish */
  line-height: 1.45;
  text-align: center;
  color: var(--text-500, #4b5563);
}

.form-terms a{
  color: var(--link, #0ea5e9);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .2s ease, text-decoration-thickness .2s ease;
}

.form-terms a:hover{
  color: #0369a1;
  text-decoration-thickness: 2px;
}

.form-terms a:focus{
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Keep it tidy on dark mode */
@media (prefers-color-scheme: dark){
  .form-terms{ color: #000000; }
  .form-terms a{ color: #38bdf8; }
  .form-terms a:hover{ color: #7dd3fc; }
}

/* Optional: prevent awkward wraps on link phrases */
.form-terms .nobr{ white-space: nowrap; }
