*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden; 
}

body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 300;
  color: #000;
  background-color: #f8f8f8;
  display: flex;
  flex-direction: column;
}

.fo-header {
  width: 100%;
}

.fo-header-inner {
  width: 100%;
  margin: 0;
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fo-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fo-header-logo {
  height: 25px;
  display: block;
}

.fo-header-subtitle {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.fo-header-right {
  display: flex;
  align-items: center;
}

.fo-header-register {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

.fo-header-register:hover {
  text-decoration: none;
  border-bottom-color: #000000;
}

@media (max-width: 768px) {
  .fo-header-inner {
    padding: 16px 20px;
  }

  .fo-header-logo {
    height: 28px;
  }

  .fo-header-subtitle {
    font-size: 14px;
  }

  .fo-header-register {
    font-size: 13px;
  }
}

.fo-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  padding: 40px 20px;
}

.fo-footer {
  text-align: center;
  font-size: 14px;
  color: #000000;
  padding: 8px 16px 16px;
  font-weight: 500;
}

.fo-chat-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.fo-chat-btn:hover {
  background-color: #222222;
}

.fo-chat-icon {
  display: block;
  fill: currentColor;
  padding: 4px;
}

.fo-alert {
  background-color: #000000;
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 496px;
  width: 100%;
  margin-bottom: 64px;
}

.fo-alert-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.fo-alert-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

.fo-alert-link {
  color: #ffffff;
  text-decoration: underline;
  word-break: break-all;
  font-size: 13px;
}

.fo-alert-link:hover {
  text-decoration: none;
}

.fo-login-container {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 56px;
  max-width: 496px;
  width: 100%;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.fo-login-title {
  font-family: "Public Sans", "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 40px;
  text-align: left;
}

.fo-login-form {
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.fo-form-group {
  position: relative;
  width: 100%;
  padding: 0px 0px 21px 0px;
}

.fo-input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #000000;
  background-color: #ffffff;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #e0e0e0;
  outline: none;
  transition: border-bottom-color 0.2s;
}

.fo-input::placeholder {
  color: #777777;
  opacity: 1;
  transition: opacity 0.2s;
}

.fo-input:focus::placeholder,
.fo-input.has-value::placeholder {
  opacity: 0;
}

.fo-label {
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #777777;
  font-family: "Roboto", sans-serif;
  pointer-events: none;
  transition: all 0.2s ease;
  background-color: #ffffff;
  padding-right: 4px;
}

.fo-input:focus ~ .fo-label,
.fo-input.has-value ~ .fo-label {
  top: -12px;
  font-size: 14px;
  color: #777777;
}

.fo-input:focus {
  border-bottom-color: #000000;
}

.fo-input:focus ~ .fo-label {
  color: #000000;
}

.fo-password-group {
  position: relative;
}

.fo-toggle-password {
  position: absolute;
  right: 12px;
  bottom: 31px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666666;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 1;
}

.fo-toggle-password:hover {
  color: #000000;
}

.fo-password-group .fo-input {
  padding-right: 48px;
}

.fo-forgot-password {
  text-align: center;
  margin-top: 8px;
}

.fo-forgot-link {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e0e0;
}

.fo-forgot-link:hover {
  text-decoration: none;
  border-bottom-color: #000000;
}

.fo-btn-submit {
  width: 100%;
  padding: 21px 24px;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #999999;
  background-color: #d9d9d9;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
}

.fo-btn-submit:hover {
  background-color: #c5c5c5;
  color: #666666;
}

.fo-btn-submit--active {
  background-color: #000000;
  color: #ffffff;
}

.fo-btn-submit--active:hover {
  background-color: #222222;
  color: #ffffff;
}

.overlay-pre2fa {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay-pre2fa-loader {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  border-top: 3px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-2fa-codemail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-2fa-codemail-container {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 48px 56px 56px;
  max-width: 589px;
  width: 100%;
  margin: 20px;
}

.modal-2fa-codemail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #000000;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.modal-2fa-codemail-close:hover {
  opacity: 0.6;
}

.modal-2fa-codemail-text {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 40px;
  line-height: 1.5;
  text-align: center;
  margin-top: 24px;
}

.modal-2fa-codemail-email {
  text-shadow: 0.3px 0 0 currentColor;
}

.modal-2fa-codemail-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.modal-2fa-codemail-inputs {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-bottom: 25px;
}

.modal-2fa-codemail-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  color: #000000;
  background-color: #ffffff;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}

.modal-2fa-codemail-input::placeholder {
  color: #969696;
  opacity: 1;
}

.modal-2fa-codemail-input:focus {
  border-bottom-color: #000000;
}

.modal-2fa-codemail-input:valid,
.modal-2fa-codemail-input.has-value {
  border-bottom-color: #000000;
}

.modal-2fa-codemail-resend {
  text-align: center;
  margin-top: -16px;
}

.modal-2fa-codemail-resend-text {
  font-size: 12px;
  font-weight: 400;
  color: #5b5b5b;
}

.modal-2fa-codemail-resend-link {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
}


.modal-2fa-codemail-btn {
  width: 100%;
  padding: 21px 24px;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #999999;
  background-color: #d9d9d9;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.modal-2fa-codemail-btn:hover {
  background-color: #c5c5c5;
  color: #666666;
}

.modal-2fa-codemail-btn--active {
  background-color: #000000;
  color: #ffffff;
}

.modal-2fa-codemail-btn--active:hover {
  background-color: #222222;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 600px) {
  .fo-main {
    padding: 24px 16px;
  }

  .fo-alert {
    padding: 14px 16px;
    font-size: 13px;
  }

  .fo-login-container {
    padding: 28px 24px;
  }

  .fo-login-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .modal-2fa-codemail-container {
    padding: 28px 24px;
  }

  .modal-2fa-codemail-title {
    font-size: 28px;
  }

  .modal-2fa-codemail-input {
    max-width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
