* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: #E8E7E7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 46px;
}

/* header */
.header {
  background: #242242;
  color: white;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header img {
  width: 112px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.header-text {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.header-text h1 {
  margin: 0;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #f6f8ff;
  white-space: nowrap;
}

.header-text p {
  display: block;
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: rgba(232, 237, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
}

.subtitle {
  font-style: normal;
}

/* center */
.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* login */
.login-card {
  background: #fff;
  width: 420px;
  padding: 35px;
  margin: 20px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.login-card h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #242242;
}

.login-card p {
  font-size: 13px;
  color: #666;
  margin: 0 0 20px 0;
}

/* input */
.input-group {
  text-align: left;
  margin-bottom: 15px;
}

.input-group label {
  font-size: 13px;
  color: #666;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: 2px;
  padding: 17px;
  margin-top: 3px;
}

.input-wrapper i {
  color: #000;
  margin-right: 10px;
  font-size: 20px;
}

.input-wrapper input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.eye {
  cursor: pointer;
  color: #777;
}

.password-input {
  font-size: 16px;
  color: #777;
}

/* button */
.login-btn {
  width: 100%;
  padding: 17px;
  margin-top: 10px;
  background: #242242;
  color: white;
  border: none;
  border-radius: 2px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.login-btn:hover {
  background: #2f256c;
}

/* links */
.links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 12px;
}

.links a {
  text-decoration: none;
  color: #3f51b5;
}

.links a:hover {
  text-decoration: underline;
}

/* footer */
.footer {
  background: #242242;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 9px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 400;
}

/* auth message */
#authMessage {
  display: none;
  margin-top: 14px;
  padding: 11px 36px 11px 12px;
  background: #eef1fb;
  color: #2f3550;
  border-radius: 8px;
  border: 1px solid #d8deef;
  box-shadow: 0 2px 8px rgba(36, 34, 66, 0.12);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  position: relative;
  animation: slideIn 0.25s ease;
}

#authMessage.auth-loading {
  background: #eef1fb;
  color: #2f3550;
  border-color: #d8deef;
}

#authMessage.auth-success {
  background: #e9f9ef;
  color: #0f6b38;
  border-color: #c8ebd6;
}

#authMessage.auth-error {
  background: #fdecee;
  color: #91203b;
  border-color: #f6cfd7;
}

#authMessage .close-alert {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 15px;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#authMessage .close-alert:hover {
  opacity: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* hide scrollbars */
::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Need Help Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14, 18, 38, 0.45);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e1e6f2;
  box-shadow: 0 20px 50px rgba(15, 22, 49, 0.28);
  padding: 0;
  min-width: 460px;
  max-width: 98vw;
  width: 600px;
  position: relative;
  text-align: left;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #2e3552;
  cursor: pointer;
  font-weight: 700;
  opacity: 0.8;
  transition: background 0.2s, opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
  background: #edf1fb;
}

.help-modal-head {
  background: linear-gradient(135deg, #242242 0%, #1d275a 100%);
  padding: 30px 34px 24px;
  color: #f5f7ff;
}

.help-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.help-modal-kicker i {
  font-size: 12px;
}

.modal-content h3 {
  margin: 12px 0 8px;
  font-size: 27px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.modal-content .modal-desc {
  font-size: 13px;
  color: rgba(237, 242, 255, 0.92);
  margin: 0;
  line-height: 1.5;
}

.help-modal-body {
  padding: 26px 30px 28px;
}

.help-modal-note {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #59607a;
}

.modal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.modal-links li {
  margin: 0;
}

.help-link {
  border: 1px solid #e2e7f4;
  border-radius: 12px;
  text-decoration: none;
  color: #1f2745;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.help-link:hover {
  border-color: #bcc7e5;
  background: #f8faff;
  transform: translateY(-1px);
}

.help-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf1fb;
  color: #1f2d6a;
  font-size: 14px;
  flex-shrink: 0;
}

.help-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.help-label {
  font-size: 11px;
  font-weight: 700;
  color: #5a617b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.help-value {
  margin-top: 1px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2745;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* mobile responsive */
@media (max-width: 720px) {
  .header {
    padding: 10px 12px;
    gap: 10px;
  }

  .header img {
    width: 90px;
    height: auto;
    max-height: 40px;
  }

  .header-text {
    padding-left: 10px;
  }

  .header-text h1 {
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1.2;
  }

  .header-text p {
    margin-top: 2px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .main {
    padding: 15px 12px;
  }

  .login-card {
    width: 100%;
    max-width: 330px;
    padding: 28px;
    margin: 15px auto;
    border-radius: 8px; 
  }

  .login-card h2 {
    font-size: 18px;
    margin: 0 0 7px 0;
  }

  .login-card p {
    font-size: 11px;
    margin: 0 0 16px 0;
  }

  .input-group {
    margin-bottom: 13px;
  }

  .input-group label {
    font-size: 11px;
  }

  .input-wrapper {
    padding: 14px;
    margin-top: 3px;
  }

  .input-wrapper i {
    font-size: 16px;
    margin-right: 10px;
  }

  .input-wrapper input {
    font-size: 12px;
  }

  .login-btn {
    padding: 14px;
    margin-top: 8px;
    font-size: 12px;
  }

  .links {
    margin-top: 13px;
    font-size: 10px;
  }

  #authMessage {
    padding: 10px 12px;
    font-size: 11px;
    margin-top: 16px;
  }

  .close-alert {
    font-size: 14px;
    right: 10px;
  }

  .footer {
    padding: 8px;
    font-size: 8px;
  }

  .modal {
    padding: 14px;
  }

  .modal-content {
    min-width: unset;
    width: 92vw;
    border-radius: 14px;
  }

  .help-modal-head {
    padding: 24px 20px 20px;
  }

  .modal-content h3 {
    font-size: 22px;
    margin-top: 10px;
  }

  .help-modal-body {
    padding: 18px 16px 20px;
  }

  .help-link {
    padding: 11px 12px;
    gap: 10px;
  }

  .help-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 12px;
  }

  .help-value {
    font-size: 12px;
  }
}