@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-VariableFont_opsz,wght.ttf");
}

html {
  overflow-x: hidden;
  height: auto;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: rgba(246, 247, 248, 1);
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h5 {
  color: #333;
}

footer {
  height: 80px;
  max-width: 100%;
  background-color: rgba(246, 247, 248, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

footer a {
  text-decoration: none;
  color: rgb(168, 168, 168);
  transform: scale(1);
  cursor: pointer;
}

footer a:hover {
  text-decoration: none;
  color: rgb(41, 171, 226);
  transform: scale(1.05);
}

.logo_header {
  height: 121px;
  width: auto;
}

header {
  height: 130px;
  max-width: 100%;
  background-color: rgba(246, 247, 248, 1);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  padding: 32px 56px 0 56px;
  overflow-x: hidden;
}

.main_content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 32px 0;
}

.sign_up_box {
  height: 630px;
  width: 598px;
  background-color: white;
  border-radius: 30px;
  box-shadow: 0px 0px 4px 2px rgba(42, 54, 71, 0.1);
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: none !important;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
}

.sign_up_box::-webkit-scrollbar {
  display: none;
}

.h1_div_sign_up_field {
  min-height: 98px;
  width: 315px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.div_sign_in_h1_separator {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.h1_box {
  font-size: 72px;
  font-weight: 700;
  text-align: center;
  color: rgb(42, 54, 71);
  margin-block-start: 0;
  margin-block-end: 0;
}

.separation_line_h1 {
  height: 3px;
  width: 50%;
  background-color: rgb(41, 171, 226);
}

.input_div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 422px;
}

.input_div input {
  width: 18px;
  height: 48px;
  border: rgb(209, 209, 209) solid 1px;
  border-radius: 10px;
  padding-left: 16px;
}

.button_sign_up_input_section {
  background-color: rgb(42, 54, 71);
  border: solid 2px rgb(42, 54, 71);
  border-radius: 10px;
  color: white;
  padding: 8px 16px;
  cursor: pointer;
  transform: scale(1);
  font-weight: 600;
  font-size: 21px;
  margin-top: 16px;
  transition: background 0.2s, border 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.button_sign_up_input_section:hover {
  background-color: rgba(41, 171, 226, 1);
  border: solid 2px rgba(41, 171, 226, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.button_sign_up_input_section:active{
    background-color: rgba(9, 25, 49, 1);
    border: solid 2px rgba(9, 25, 49, 1);
    box-shadow: none;
}

.button_sign_up_input_section:disabled,
.button_sign_up_input_section[aria-disabled="true"] {
  background-color: #2a3647;
  border-color: #2a3647;
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
  opacity: 0.5;
}

.button_sign_up_input_section:disabled:hover,
.button_sign_up_input_section[aria-disabled="true"]:hover {
  background-color: #29abe2;
  border-color: #29abe2;
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
  opacity: 0.5;
}

.checkbox_div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  cursor: pointer;
}

.checkbox_div input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #2a3647;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.checkbox_div input[type="checkbox"]:checked {
  background-color: #2a3647;
}

.checkbox_div input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: bold;
}

.checkbox_div label {
  color: #2a3647;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

a {
  color: rgb(11, 138, 193);
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

.back_arrow_sign_in {
  height: 32px;
  width: 32px;
  transform: translateX(-104px) scale(1);
  cursor: pointer;
}

.back_arrow_sign_in:hover {
  transform: translateX(-104px) scale(1.1);
}

#check_box_image {
  cursor: pointer;
  transform: scale(1);
}

#check_box_image:hover {
  transform: scale(1.1);
}

.link_accept_privacy_policy {
  text-decoration: none;
  transition: text-decoration 100ms ease-in-out,
              transform 100ms ease-in-out;
  display: inline-block; 
  text-align: left; 
}

.link_accept_privacy_policy:hover {
  text-decoration: underline;
  transform: scaleX(1.02);
}

.input_label {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.input_wrapper {
  position: relative;
  width: 100%;
  border-radius: 10px;
  transition: border 0.2s;
  background: #fff;
}

.input_icon_wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input_label input {
  width: 100%;
  height: 48px;
  padding-right: 40px;
  box-sizing: border-box;
  border: 1px solid rgb(209, 209, 209);
  outline: none;
  background: transparent;
  font-size: 18px;
  border-radius: 10px;
  transition: border 0.2s;
}

.input_label input:focus {
  border: 1.5px solid #29abe2;
  outline: none;
}

.input_label input:invalid:not(:focus):not(:placeholder-shown) {
  border: 1.5px solid #ff8190;
}

.input_label input::placeholder {
  font-size: 18px;
  color: rgb(209, 209, 209);
}

.input_label:has(input:invalid:not(:focus):not(:placeholder-shown)) .input-error {
  visibility: visible;
}

.input-error {
  color: #ff8190;
  font-size: 12px;
  margin-top: 2px;
  margin-bottom: 2px;
  padding-left: 3px;
  visibility: hidden;
  min-height: 16px;
  display: block;
}

.input_icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  z-index: 1000;
}

#toggle_icon_sign_up {
  cursor: pointer;
}

#icon_confirm_password_sign_up {
  cursor: pointer;
}

.loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  width: 100%;
  height: 100%;
}

.loading-spinner img {
  width: 200px;
  height: auto;
  transform-origin: center center;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.success-message {
  color: #fff;
  background: rgb(42, 54, 71);
  padding: 20px 40px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
}

#error_message_sign_up {
  font-size: 12px;
}

.svg-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.svg-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 18px;
  height: 18px;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.svg-checkbox .checkbox-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  position: relative;
  display: none;
  pointer-events: none;
}

.svg-checkbox .unchecked {
  display: inline-block;
}

.svg-checkbox input[type="checkbox"]:checked ~ .unchecked {
  display: none;
}

.svg-checkbox input[type="checkbox"]:checked ~ .checked {
  display: inline-block;
}

.svg-checkbox .checked {
  display: none;
}

.svg-checkbox:hover .checkbox-icon.unchecked,
.svg-checkbox:hover .checkbox-icon.checked{
    border-radius: 50px;
    background-color: rgba(209, 209, 209, 1);
}
