/* marriagev2 — login page
   Matches the shared login design image: dark blue municipal-hall backdrop,
   frosted split card, "Welcome!" on the left, the form on the right. */

:root {
  --brand-blue:      #1B3A8C;
  --brand-deep:      #142C6B;
  --brand-light:     #7DB1FF;
  --brand-lighter:   #BDD7FF;
  --brand-mid:       #518FEC;
  --brand-off-white: #EFEFF9;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-height: 100vh;
  background-color: var(--brand-blue);
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Background layers ─────────────────────────────────────────────────── */
.bg-image {
  position: fixed;
  inset: 0;
  background: url('../img/cainta-muni.jpg') center/cover no-repeat;
  mix-blend-mode: multiply;
  filter: blur(2.5px);
  z-index: 0;
  pointer-events: none;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 70, .55);
  z-index: 1;
  pointer-events: none;
}
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  z-index: 0;
  animation: blobFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.bg-blob-1 { width: min(700px, 100vw); height: min(700px, 100vw); background: var(--brand-light);   top: -150px;    left: -150px;   animation-delay: 0s; }
.bg-blob-2 { width: min(500px, 80vw);  height: min(500px, 80vw);  background: var(--brand-lighter); bottom: -100px; right: -100px;  animation-delay: 3s; }
.bg-blob-3 { width: min(400px, 70vw);  height: min(400px, 70vw);  background: var(--brand-mid);     top: 40%;       left: 30%;      animation-delay: 6s; }

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

/* ── Top logos ─────────────────────────────────────────────────────────── */
.top-logos {
  position: fixed;
  top: 14px;
  left: clamp(12px, 3vw, 50px);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.top-logos img {
  width: clamp(40px, 5vw, 62px);
  height: clamp(40px, 5vw, 62px);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 2;
  width: min(1100px, 94vw);
  background: linear-gradient(270deg, rgba(255,255,255,.15) 0%, rgba(30,30,30,.15) 65%);
  box-shadow: 4px 4px 30px 10px rgba(0, 0, 0, .25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 25px;
  overflow: hidden;
  animation: cardIn .7s cubic-bezier(.22, .68, 0, 1.2) both;
  margin: 110px auto 70px;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(32px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Left panel ────────────────────────────────────────────────────────── */
.left-panel {
  padding: clamp(30px, 5vw, 55px) clamp(24px, 4vw, 55px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}
.gov-republic,
.gov-municipality,
.gov-province {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(14px, 2vw, 22px);
  line-height: 1.4;
  color: #fff;
}
.gov-republic    { font-weight: 400; }
.gov-municipality{ font-weight: 800; color: var(--brand-light); }
.gov-province    { font-weight: 500; }

.welcome-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 1.05;
  background: linear-gradient(90deg, var(--brand-lighter) 0%, var(--brand-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp .8s .3s both;
  margin: auto 0 clamp(20px, 4vw, 100px);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.left-footer p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--brand-off-white);
  opacity: .85;
  margin: 0;
}

.panel-divider {
  display: none;
  height: 1px;
  background: rgba(239, 239, 249, .2);
  margin: 0 clamp(20px, 5vw, 50px);
}

/* ── Right panel / form ────────────────────────────────────────────────── */
.right-panel {
  padding: clamp(30px, 5vw, 55px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(239, 239, 249, .12);
}

.db-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--brand-off-white);
  text-align: center;
  text-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  margin-bottom: clamp(20px, 3vw, 30px);
}

.alert-error,
.alert-notice {
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 18px;
}
.alert-error {
  background: rgba(220, 53, 69, .22);
  border: 1px solid rgba(255, 138, 148, .6);
  color: #FFE0E3;
}
.alert-notice {
  background: rgba(255, 193, 7, .18);
  border: 1px solid rgba(255, 214, 102, .6);
  color: #FFF3D0;
}

.form-label-custom {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-off-white);
  margin-bottom: 6px;
  display: block;
}

.input-wrap { position: relative; }

.input-custom {
  width: 100%;
  height: 48px;
  background: transparent;
  border: 1.5px solid var(--brand-off-white);
  border-radius: 30px;
  padding: 0 46px 0 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: var(--brand-off-white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input-custom::placeholder { color: rgba(239, 239, 249, .5); }
.input-custom:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(125, 177, 255, .2);
}
/* Chrome autofill would otherwise paint the field white */
.input-custom:-webkit-autofill,
.input-custom:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--brand-off-white);
  transition: background-color 9999s ease-in-out 0s;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--brand-off-white);
  opacity: .75;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-icon svg { width: 20px; height: 20px; }

.forgot-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-off-white);
  opacity: .85;
  text-decoration: none;
  transition: opacity .15s;
}
.forgot-link:hover { opacity: 1; text-decoration: underline; color: var(--brand-off-white); }

.btn-login {
  width: 100%;
  height: 50px;
  background: var(--brand-off-white);
  border: none;
  border-radius: 30px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-blue);
  cursor: pointer;
  letter-spacing: .5px;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.btn-login:hover {
  background: #D8D8F0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.btn-login:active { transform: scale(.98); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.copyright {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: rgba(239, 239, 249, .7);
  white-space: nowrap;
}
.copyright svg { width: 13px; height: 13px; opacity: .7; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  body { align-items: flex-start; }

  .login-card { margin: 90px 10px 60px; border-radius: 20px; }

  .left-panel { min-height: unset; padding-bottom: 24px; }

  .welcome-text {
    font-size: clamp(52px, 16vw, 76px);
    margin-bottom: 18px;
  }

  .panel-divider { display: block; }

  .right-panel {
    border-left: none;
    padding-top: 28px;
  }

  .top-logos img { width: 38px; height: 38px; }
}

@media (max-width: 400px) {
  .welcome-text { font-size: 44px; }
  .db-title { font-size: 15px; }
}
