header {
  position: relative;
}

header img {
  position: absolute;
  top: 16px;
  left: 16px;

  width: 30;   /* adjust this value to make the logo bigger or smaller */
  height: 80px;
}

header nav {
  position: absolute;
  top: 16px;
  right: 16px;
}

header nav a {
  margin-left: 16px;
}

body {
  background-color: rgb(248, 244, 244);
  color: black;
}

h2,
h2 + p {
  position: absolute;
  left: 80px;
  max-width: 500px;   /* adjust width of the text area */
}

h2 {
  top: 50%;
  transform: translateY(-120%);
}

h2 + p {
  top: 50%;
  margin-top: 16px;
}

form {
  position: absolute;
  top: 0;

  right: 15%;        /* change this value: 0% = edge, 10%, 30%, 50%, etc. */

  height: 100vh;
  width: 420px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 40px;
}

form img {
  align-self: center;
  margin-bottom: 24px;

  width: 40%;      /* adjust this percentage to control logo size */
  height: 80px;
}

form h1 {
  text-align: center;
  margin-bottom: 10px;
}


form p {
  text-align: center;
  margin-top: 0px;     /* small spacing under h1 */
  margin-bottom: 24px;
}


form label {
  display: block;
  width: 80%;
  margin-left: 10%;
}

form input {
  border: none;
  border-radius: 0;
  background: transparent;

  border-bottom: 1px solid black;

  padding: 4px 0;
  margin: 0 0 6px 0;   /* very tight spacing */
  outline: none;
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
}

form button {
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;

  margin-top: 12px;

  padding: 10px 0;        /* adjust this to control button height */
  border-radius: 999px;   /* fully rounded */

  border: 1px solid black;
  background: transparent;

  cursor: pointer;
  color: black;
}


form .form-options {
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 12px;
}

form .form-options label {
  display: flex;
  align-items: center;
  white-space: nowrap;   /* prevents breaking */
  gap: 4px;
}

form .form-options a {
  white-space: nowrap;   /* prevents breaking */
}

form .form-options input[type="checkbox"] {
  margin: 0;             /* removes default browser spacing */
}

form .form-options {
  align-self: stretch;
}

form .form-options label {
  width: auto;
  margin: 0;
}


form .or-text {
  text-align: center;
  margin: 16px 0;   /* equal space above and below */
}


:root {
  --header-nav-color: rgb(82, 82, 242);   /* change this value to any blue shade you want */
}

header nav a {
  color: var(--header-nav-color);
}
header nav a {
  text-decoration: none;
}


/* idle state */
form label {
  color: #555; /* dull black */
}

form input {
  border: none;
  background: transparent;
  border-bottom: 1px solid #555; /* dull black */
  color: #000;
  outline: none;
}

/* focused state */
form input:focus {
  border-bottom: 2px solid rgb(86, 86, 246); /* blue */
}

/* label turns blue when its input is focused */
form label:has(+ input:focus) {
  color: rgb(86, 86, 246);
}


form button[type="submit"] {
  background-color: rgb(77, 77, 227);
  color: white;
  border-color: rgb(83, 83, 246);
}


:root {
  --action-purple: #6f4cff;   /* change this value to adjust the shade */
}

form button[type="button"] {
  color: var(--action-purple);
  border-color: var(--action-purple);
}

form .form-options a {
  color: var(--action-purple);
}

form .form-options label {
  color: var(--action-purple);
}

form button:last-of-type {
  background-color: white;
  color: black;
  border: 1px solid black;
}

form input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 16px;
  height: 16px;

  border: 1px solid var(--action-purple);
  background-color: white;

  display: inline-grid;
  place-content: center;
}

form input[type="checkbox"]:checked {
  background-color: var(--action-purple);
}

form input[type="checkbox"]::before {
  content: "✓";
  color: white;
  font-size: 12px;
  display: none;
}

form input[type="checkbox"]:checked::before {
  display: block;
}
form input[type="checkbox"] {
  border-radius: 4px;
}

form input {
  color: black;
}



:root {
  --form-scale: 0.9;   /* 1 = normal, 0.9 = smaller, 1.1 = bigger */
}

form {
  transform: scale(var(--form-scale));
  transform-origin: top right;
}


@media (max-width: 900px) {

  h2,
  h2 + p {
    display: none;
  }

  header img {
    width: 80px;
  }

  header nav a {
    font-size: 14px;
  }

  form {
    right: 50%;
    width: 90%;
    transform: translateX(50%) scale(var(--form-scale));
    transform-origin: top center;
  }

}




/* page blur */
#pageContent.blur {
  filter: blur(6px);
  pointer-events: none;
}

/* modal container */
#verifyModal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

/* active */
#verifyModal.active {
  opacity: 1;
  pointer-events: auto;
}

/* modal card */
#verifyModal > div {
  background: white;
  padding: 32px;
  width: 360px;
  border-radius: 14px;
}





/* verification box layout */
.verify-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

/* remove heading influence visually */
.verify-box h2 {
  display: none;
}

/* paragraph ABOVE input */
.verify-box p {
  margin: 0;
  font-size: 14px;
  text-align: left;
}

/* verification input */
.verify-box input {
  border: 1px solid #ccc;
  border-radius: 10px;        /* not square, not pill */
  padding: 12px;
  font-size: 16px;
  outline: none;
}

/* verify button BELOW input */
.verify-box button {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;        /* matches input */
  border: none;
  background-color: blue;
  color: white;
  font-size: 16px;
  cursor: pointer;
}




.verify-box {
  width: 360px;
  background: #f2f2f2;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

/* logo */
.verify-logo {
  width: 100px;
  margin-bottom: 16px;
}

/* email text */
.verify-identity {
  font-weight: 600;
  margin-bottom: 8px;
}

/* text */
.verify-text {
  font-size: 14px;
  margin-bottom: 20px;
}

/* code input */
#codeInput {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid #f5b400;
  font-size: 16px;
  outline: none;
}

/* verify button */
#verifyBtn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: none;
  background: #1a8cff;
  color: white;
  font-size: 16px;
  cursor: pointer;
}





/* verification box */
.verify-box {
  width: 360px;
  background: #f2f2f2;
  padding: 32px;
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* logo top-center */
.verify-logo {
  width: 90px;
  margin-bottom: 20px;
}

/* identity text */
.verify-identity {
  font-weight: 600;
  margin-bottom: 6px;
}

/* message text */
.verify-text {
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

/* underline-style input */
#codeInput {
  width: 100%;
  border: none;
  border-bottom: 2px solid #f5b400;
  background: transparent;

  padding: 10px 0;
  font-size: 16px;
  text-align: center;

  outline: none;
  margin-bottom: 16px;
}

/* error message */
.verify-error {
  color: red;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

/* verify button */
#verifyBtn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;

  border: none;
  background: #1a8cff;
  color: white;

  font-size: 16px;
  cursor: pointer;
}


#codeInput {
  color: #000;
  caret-color: #000;
}



.error-message {
  display: none;
  color: #d93025;
  font-size: 14px;
  margin: 10px 0;
}
