/* Modern + Eric Meyer reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Eric Meyer Reset v2.0 | 20110126 | http://meyerweb.com/eric/tools/css/reset/ */
* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
  background: transparent;
  color: #6e6e6e;
  background-color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  text-align: center;
}

h2 {
  font-size: 22px;
  color: #1d1e30;
  margin-bottom: 10px;
}

a {
  color: #3ed79f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.logo {
  display: block;
  width: 280px;
  margin: 55px auto 20px auto;
}

.bg-image {
  position: fixed;
  top: 25px;
  right: 50%;
  /* Move from 2% (wide) up to 35% (narrow).
     - when 100vw >= 1000px the calc is <= 0 so clamp enforces 2%
     - as 100vw -> 0px the calc approaches 16%, so the total approaches 35%
     Adjust the 1000px baseline for different responsiveness range.
  */
  transform: translateX(
      clamp(2%, calc(2% + 32% * ((1100px - 100vw) / 300px)), 35%)
    )
    translateY(clamp(-3%, calc(-3% * ((970px - 100vw) / 300px)), 0%));
  z-index: -1;
}

.login-form-container {
  display: flex;
  margin: 0 auto;
  margin-top: 90px;
  margin-bottom: 60px;
  width: 100%;
  max-width: 500px;
  min-width: 350px;
  padding: 30px 30px;
  background-color: rgba(128, 128, 128, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0px 10px 15px #11a9704d;
  border-radius: 20px;
  border: 1px solid #ffffff;
}

.login-form {
  width: 100%;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid #f2f2f2;
  outline: none;
  border-radius: 12px;
}

/* Error / validation message placeholder under inputs */
.error {
  display: block;
  margin-top: 6px;
  color: red;
  /* red */
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.login-form input::placeholder {
  color: #6e6e6e;
}

.options {
  display: flex;
  margin-top: 25px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #605f5f;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d9d9d9;
  font-size: 25px;
  font-weight: bold;
  overflow: hidden;
}

.checkbox-container input:checked + .checkmark::after {
  content: "✓";
}

.options a {
  color: #605f5f;
}



input[type="submit"],
.btn-logout {
  background-color: #3ed79f;
  color: #1d1e30;
  min-width: 100px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  transition: background-color 0.2s;
  cursor: pointer;
}

input[type="submit"]:hover,
.btn-logout:hover {
  background-color: #8dfbd2;
}

input[type="submit"] {
  display: block;
  margin-left: auto;
  margin-top: 20px;
  width: 100px;
  font-size: 14px;
  font-weight: 600;
}

.security-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

footer {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 40px;
  font-size: 12px;
  color: #999;
}

.accounts-heading {
  margin-top: 80px;
  margin-bottom: 40px;
}

.account-list {
  display: inline-block;
  margin: 10px auto;
  width: 100%;
  max-width: 440px;
}

.account-item {
  display: flex;
  justify-content: space-between;
  background: #f2f2f2;
  align-items: center;
  padding: 6px;
  border: none;
  border-radius: 12px;
  margin-bottom: 20px;
}

.account-info {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.account-info img {
  width: 20px;
  margin-right: 12px;
}

.account-info span {
  color: #1d1e30;
}

.btn-select {
  display: flex;
  padding: 10px 12px;
  color: #1d1e30;
  background-color: #8dfbd2;
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 110px;
  transition: background-color 0.3s;
}

.btn-select:hover {
  background-color: #3ed79f;
}

.arrow {
  margin-left: 10px;
  font-size: 18px;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Tablet view Styles */
@media (max-width: 1024px) {
  .logo {
    max-width: 200px;
    margin: 30px auto 20px auto;
  }
  .bg-image {
    scale: 0.6;
    margin-top: -145px;
    right: 50%;
    transform: translateX(75%);
  }
  .login-form-container {
    margin-top: 150px;
  }
}

/*mobile view Styles*/
@media (max-width: 600px) {
  body {
    padding-inline: 20px;
  }

  input[type="submit"] {
    width: 100%;
  }

  .logo {
    max-width: 180px;
    margin: 20px auto 20px auto;
  }
}
