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

html,
body {
  height: 100%;
}

body {
  font-family: sans-serif;
  color: var(--text);
  background: var(--splash-blue);
  animation: bg_to_white 1.8s ease-in-out 0.4s forwards;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 40px;
  padding-top: 130px;
}

header {
  position: absolute;
  top: 30px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.primary-button,
.signUp,
.primary_button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.primary-button:hover,
.signUp:hover,
.primary_button:hover {
  background: var(--blue-dark);
}

.clear-button {
  background: none;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  font-size: 16px;
}

.clear-button:hover {
  background: var(--blue);
  color: #fff;
}

.login_icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  animation: J_go_left 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.login_icon .logo {
  width: 250px;
  height: 250px;
  filter: brightness(0) invert(1);
  animation: J_shrink_color 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.login_form {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: form_fade 0.5s ease 1.4s forwards;
    position: relative;
  z-index: 2;
}
.login_header {
  text-align: center;
}

.login_header h1 {
  font-size: 40px;
  line-height: 1.2;
}

.separator {
  width: 86px;
  height: 4px;
  background: var(--blue);
  border-radius: 4px;
  margin: 10px auto 0;
}

.input_row {
  position: relative;
  width: 100%;
  margin: 14px 0;
}

.input-font {
  width: 100%;
  font-size: 16px;
  padding: 12px 40px 12px 14px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #e6e8ec;
  border-radius: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.input-font::placeholder {
  color: #b9bec8;
}

.input-font:focus {
  outline: none;
  border-bottom-color: var(--blue);
  background: transparent;
}

.overlay-image {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.85;
  pointer-events: none;
}

.button_group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.notUser {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

footer {
  margin-top: auto;
  padding: 12px 0;
  text-align: center;
}

.footer_info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
}

.footer_info a {
  color: var(--blue);
  text-decoration: none;
}

.footer_info a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    background: #fff;
  }

  .login_icon {
    animation: none;
    top: 10px;
    left: var(--logo-left);
    transform: none;
  }

  .login_icon .logo {
    animation: none;
    width: 110px;
    height: 110px;
    filter: none;
  }

  .login_form {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 560px) {
  header {
    top: 8px;
    right: 10px;
  }
  .login_icon,
  .login_icon .logo {
    width: 160px;
    height: 160px;
  }


  .login_box {
    margin-top: 28px;
    padding: 24px 18px;
     max-width: 540px;
  }

  .login_header h1 {
    font-size: 34px;
  }
  .input_row{
    margin: 0px;
  }
}

.primary_button:disabled {
  background: #cfd8dc;
  color: #777;
  cursor: not-allowed;
  box-shadow: none;
  font-size: 16px;
}

.span_login{
  padding-right: 10px;
}

.main_login{
  display: flex;
  align-items: center;
  justify-content: center;
      min-height: calc(100vh - 310px);
  padding: 40px 0 20px;
}

.error-message {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: red;
}

.visually-hidden {
  display: none;
}

.login_icon,
.login_icon .logo {
  width: 120px;
  height: 120px;
}
@media (max-width: 900px) {
  .login_icon,
  .login_icon .logo {
    width: 100px;
    height: 100px;
  }

  .login_box {
    max-width: 720px;
  }
}
@media (max-height: 800px) {
  .content {
    padding-top: 80px;
    padding-bottom: 24px;
  }

  header {
    top: 16px;
  }

  .login_icon,
  .login_icon .logo {
    width: 80px;
    height: 80px;
  }

  .login_box {
    padding: 26px 20px;
    row-gap: 8px;
  }

  .login_header h1 {
    font-size: 32px;
  }

  .main_login {
    min-height: calc(100vh - 220px);
    padding: 22px 0 12px;
  }
}
.login_box {
  width: clamp(300px, 55vw, 480px);
  padding: 40px 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  align-items: stretch; 
  row-gap: 10px;
}
header {
  opacity: 0;
  animation: header_fade_in 0.4s ease 1.6s forwards; 
}

@keyframes header_fade_in {
  to { opacity: 1; }
}

.input-font {
  color: #4b5563;        
}

.input-font::placeholder {
  color: #c7ccd5;         
}
