/* ===============================
   Login Page (scoped, last-loaded)
   =============================== */

/* Layout: sticky footer */
:root {
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

html {
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  margin: 0;
}
main {
  flex: 1;
  display: block;
}

body,
input,
select,
textarea,
button {
  font: inherit;
}

.login-banner {
  width: 100%;
  aspect-ratio: 16/5;
  min-height: 160px;
  background: url("https://moleac.com/v3/wp-content/uploads/2025/03/Navy-Geometric-Technology-LinkedIn-Banner-3.png")
    center/cover no-repeat;
  margin: 0;
  padding: 0;
}

.login-wrap {
  width: min(92vw, 520px);
  margin: clamp(1rem, 4vw, 2.5rem) auto clamp(1.25rem, 5vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem);
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.login-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #ff8802, #f57b21 55%, #ffb35a);
  opacity: 0.9;
}

/* Typography & labels */
.login-wrap h2 {
  margin: 6px 0 6px;
  font-weight: 800;
  color: #0f172a;
}
.login-wrap label {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: #111827;
}

/* Form grid + controls */
.login-wrap form {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
}
.login-wrap form > label {
  margin-bottom: 2px;
}

.login-wrap input[type="text"],
.login-wrap input[type="email"],
.login-wrap input[type="password"],
.login-wrap input[type="search"],
.login-wrap input[type="tel"],
.login-wrap input[type="url"],
.login-wrap select,
.login-wrap textarea {
  width: 100%;
  min-height: 44px;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.15s, box-shadow 0.15s;
  appearance: none; /* keeps look consistent across browsers */
}

.login-wrap input:hover,
.login-wrap select:hover,
.login-wrap textarea:hover {
  border-color: #d6dae3;
}

.login-wrap input:focus,
.login-wrap select:focus,
.login-wrap textarea:focus {
  border-color: #f57b21;
  box-shadow: 0 0 0 4px rgba(245, 123, 33, 0.15);
  outline: none;
}

.login-wrap input::placeholder,
.login-wrap textarea::placeholder {
  color: #9aa1ad;
  opacity: 1;
}

.login-wrap input[type="text"]:hover {
  border-color: #d6dae3;
}
.login-wrap input[type="text"]:focus {
  border-color: #f57b21;
  box-shadow: 0 0 0 4px rgba(245, 123, 33, 0.15);
  outline: none;
}

.login-wrap input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #111827;
}

/* Button + link */
.login-wrap form > div {
  width: 100%;
}

.login-wrap button {
  width: 100%;
  padding: clamp(10px, 1.8vw, 12px) 16px;
  background: #2563eb; /* blue */
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
  transition: transform 0.02s, filter 0.15s, box-shadow 0.15s;
}

.login-wrap button:hover {
  filter: brightness(1.05);
}
.login-wrap button:active {
  transform: translateY(1px);
}

.login-wrap hr {
  border: 0;
  height: 1px;
  margin: 18px 0 14px;
  position: relative;
  background: linear-gradient(90deg, transparent, #e7e9ef, transparent);
}
.login-wrap hr::after {
  content: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 10px;
  color: #9aa1ad;
  font-weight: 700;
  font-size: 0.8rem;
}
.login-wrap > a {
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  font-weight: 700;
  color: #f57b21;
  text-decoration: none;
  border: 2px solid #f8b46f;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.login-wrap > a:hover {
  background: #fff7ec;
  border-color: #f6a85b;
}

/* Messages */
.login-wrap .msg {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0.75rem 0;
  font-weight: 600;
}
.login-wrap .msg:not([style]) {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

/* Login navbar tweaks */
.navbar--tight .title {
  display: none;
}

.logo--large {
  height: clamp(36px, 6vw, 60px);
}

/* Responsive */
@media (max-width: 768px) {
  .login-banner {
    aspect-ratio: 16/7;
    min-height: 120px;
    background-position: 70% center;
  }
}

@media (min-width: 769px) {
  main .login-wrap {
    margin-top: 72px !important;
  }
}

@media (max-width: 420px) {
  .login-banner {
    display: none;
  }
  .login-wrap {
    margin-top: 1rem;
  }
}
