/* ---------- RESET / BASE ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
}
a {
  color: #0a66c2;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- HEADER ---------- */
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top-header {
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  margin-bottom: 12px;
}
.brand {
  font-size: 25px;
  font-weight: 800;
  color: #0a66c2;
  text-decoration: none;
}
.brand span {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}

.brand svg {
  height: 1em;
  width: auto;
  vertical-align: middle;
}

/* ---------- CENTER CONTENT ---------- */
.center-area {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 20px 32px;
}

/* ---------- LOGIN CARD ---------- */
.errorMsg {
  background: transparent;
  border: 0;
  color: #a70000;
  font-weight: 500;
  border-radius: 0;
  padding: 0;
  font-size: 13px;
  margin-bottom: 10px;
}

.errorMsg a {
  color: #a70000;
  text-decoration: underline;
  font-weight: 800;
}

.login-form input.error {
  border-color: #ccd6de;
  box-shadow: none;
}

.login-card {
  width: min(330px, 100%);
  max-width: 330px;
  background: #fff;
  border: 1px solid #d8dee5;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(4, 31, 68, 0.13);
  padding: 28px 24px 24px;
}
.login-card h1 {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 800;
  color: #0f1331;
  letter-spacing: -0.02em;
}
.login-card p {
  margin: 0;
}

/* ---------- SOCIAL BUTTONS ---------- */
.socials {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.social-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 24px;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #252525;
  background: #fff;
  cursor: pointer;
}
.social-btn:hover {
  background: #f5f8fb;
}
.social-btn.google {
  border-color: #000;
}
.social-btn.microsoft {
  border-color: #000;
}
.social-btn.apple {
  border-color: #000;
}
.social-btn .icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- TERMS / OR ---------- */
.legal {
  font-size: 12px;
  color: #5b6578;
  line-height: 1.4;
  margin: 0 0 14px;
}
.legal a {
  color: #0a66c2;
}
.or-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 16px;
}
.or-sep::before,
.or-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe7ef;
}
.or-sep span {
  padding: 0 12px;
  color: #5b6578;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- FORM ---------- */
.login-form {
  display: grid;
  gap: 10px;
}
.login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid #ccd6de;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 15px;
  line-height: 1.3;
  background: #fff;
}
.login-form input:focus {
  outline: none;
  border-color: #0a66c2;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}
.password-wrapper {
  position: relative;
  display: block;
}
.password-wrapper .show-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border: none;
  color: #0a66c2;
  cursor: pointer;
  padding: 0;
}

/* ---------- BOTTOM ROW ---------- */
.row-between {
  display: block;
}

.forgot {
  color: #0a66c2;
  font-weight: 700;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 10px;
}

.keep-login {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4d5663;
  font-weight: 600;
  padding: 10px 12px;
  background: transparent;
  width: 100%;
}

.keep-login input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0a66c2;
  margin: 0;
}

/* keep the .login-form button spacing consistent */
.login-form button[type="submit"] {
  margin-top: 12px;
}

/* ---------- ACTION BUTTON ---------- */
.login-form button[type="submit"] {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 24px;
  background: #0a66c2;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.login-form button[type="submit"]:hover {
  background: #004182;
}

/* ---------- JOIN NOW ---------- */
.join-now {
  margin-top: 18px;
  text-align: center;
  color: #434759;
  font-size: 14px;
}
.join-now a {
  font-weight: 700;
  color: #0a66c2;
}

/* ---------- FOOTER (optional) ---------- */
.page-footer {
  width: 100%;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: #7a8596;
  background: transparent;
  margin-top: auto;
}
.page-footer a {
  text-decoration: none;
  color: #7a8596;
  margin: 0 6px;
}
.page-footer a:hover {
  color: #0a66c2;
}

/* ---------- ADJUSTMENT: exact centered modal flow ---------- */
body,
html {
  height: 100%;
}
.center-area {
  min-height: calc(100vh - 76px - 50px);
}
.login-card {
  min-height: 530px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 560px) {
  .top-header {
    padding: 0 14px;
  }
  .login-card {
    margin: 0 8px;
    padding: 20px 14px 18px;
  }
  .login-card h1 {
    font-size: 30px;
  }
  .social-btn {
    min-height: 40px;
    font-size: 14px;
  }
  .login-form input {
    height: 42px;
  }
  .login-form button[type="submit"] {
    height: 42px;
    font-size: 15px;
  }
  .center-area {
    padding: 12px 12px 24px;
    min-height: calc(100vh - 76px - 40px);
  }
}
