/* Basic reset */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #222;
}

.page-form {
  display: flex;
  min-height: 100vh;
  position: relative;background: #ffffff;
}

/* background overlay / subtle pattern */
.bg-overlay {
  flex: 0 0 70%;
    background: url('../images/login-bg.png') center/cover no-repeat;
    height: 100vh;
}

/* container */
.login-container {
  flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 2;
    /* Important: stays clickable */
  background: #ffffff;
}

/* card */
.login-card {
  width: 100%;
  max-width: 420px;
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(22, 35, 60, 0.08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;z-index: 3;
  border: solid 1px #0c5687;
}

/* header */
.login-header {
  text-align: center;
  margin-bottom: 4px;
}
.logo {
  height: 48px;
  display: block;
  margin: 0 auto 10px;
}
.login-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0b3551;
}
.login-header .sub {
  margin: 6px 0 0;
  color: #6c7a89;
  font-size: 13px;
}

/* fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  color: #223344;
}
.input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e0e6eb;
  font-size: 14px;
  width: 100%;
}
.input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 86, 135, 0.06);
  border-color: #0c5687;
}

/* password row */
.password-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-toggle {
  background: transparent;
  border: 0;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  color: #0c5687;
  border-radius: 6px;
}
.btn-toggle:focus {
  outline: none;
}

/* options row */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #556;
}
.link {
  color: #0c5687;
  text-decoration: none;
  font-size: 13px;
}
.link:hover {
  text-decoration: underline;
}

/* actions */
.actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.btn-primary {
  background: #0c5687;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}
.btn-primary:hover {
  opacity: 0.95;
}

/* error */
.error {
  color: #b00020;
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}

/* footer */
.login-footer {
  text-align: center;
  margin-top: 8px;
  color: #8a97a6;
  font-size: 12px;
}

/* small screens */
@media (max-width: 1024px) {
  .bg-overlay {
    flex: 0 0 50%;
  }

  .login-container {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  /* Stack vertically on small screens */
  .page-form {
    flex-direction: column;
  }
  .bg-overlay {display: none;
    width: 100%;
    height: 40vh;
    flex: unset;
  }

  .login-container {
    width: 100%;
    flex: unset;
    padding: 20px;
  }
}
@media (max-width: 450px) {
  .bg-overlay {
    display: none;
    width: 100%;
    height: 40vh;
    flex: unset;
  }
}