/* ========================================
   RESET
======================================== */

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

html {
  width: 100%;
  min-height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;

  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  background: #ffffff;
  color: #111111;

  -webkit-font-smoothing: antialiased;
}

/* ========================================
   PAGE
======================================== */

.page {
  width: 100%;
  min-height: 100vh;

  background: #ffffff;
}

/* ========================================
   HEADER
======================================== */

.header {
  width: 100%;
  height: 76px;

  display: flex;
  align-items: center;

  padding: 0 clamp(18px, 4vw, 60px);

  border-bottom: 1px solid #d7d7d7;
}

/* ========================================
   LOGO
======================================== */

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-text {
  font-size: clamp(23px, 2.2vw, 28px);

  font-weight: 800;
  font-style: italic;

  letter-spacing: -1.4px;

  color: #151515;
}

.logo-lines {
  width: 25px;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.logo-lines i {
  display: block;

  width: 23px;
  height: 2px;

  background: #0080a0;

  transform: skewX(-25deg);
}

.logo-lines i:nth-child(2) {
  width: 20px;
}

.logo-lines i:nth-child(3) {
  width: 23px;
}

.logo-lines i:nth-child(4) {
  width: 19px;
}

.logo-lines i:nth-child(5) {
  width: 22px;
}

/* ========================================
   LOGIN SECTION
======================================== */

.login-section {
  width: 100%;

  padding: clamp(28px, 5vw, 48px) clamp(18px, 5vw, 60px) 0;
}

.login-section > h1 {
  text-align: center;

  font-size: clamp(27px, 4vw, 36px);

  line-height: 1.2;

  font-weight: 700;

  color: #555555;

  margin-bottom: clamp(28px, 4vw, 40px);
}

/* ========================================
   LOGIN CONTAINER
======================================== */

.login-container {
  width: 100%;

  max-width: 620px;

  margin: 0 auto;
}

.login-container h2 {
  font-size: clamp(19px, 2vw, 22px);

  line-height: 1.2;

  font-weight: 700;

  margin-bottom: 14px;
}

/* ========================================
   FORM
======================================== */

.form-group {
  margin-bottom: clamp(30px, 4vw, 40px);
}

.form-group label {
  display: block;

  font-size: 16px;

  font-weight: 700;

  margin-bottom: 8px;
}

.form-group input {
  width: 100%;

  height: 58px;

  padding: 0 12px;

  border: 1px solid #d5d5d5;

  border-radius: 0;

  outline: none;

  font-size: 16px;

  color: #222222;

  background: #ffffff;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-group input::placeholder {
  color: #b7b7b7;
}

.form-group input:focus {
  border-color: #888888;

  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ========================================
   PASSWORD
======================================== */

.password-group {
  margin-bottom: clamp(45px, 6vw, 60px);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 50px;
}

/* ========================================
   PASSWORD TOGGLE
======================================== */

.password-toggle {
  position: absolute;

  top: 50%;
  right: 12px;

  transform: translateY(-50%);

  width: 28px;
  height: 28px;

  border: none;

  background: transparent;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.password-toggle svg {
  width: 22px;
  height: 22px;

  fill: none;

  stroke: #a5a5a5;

  stroke-width: 1.5;
}

/* ========================================
   LOGIN BUTTON
======================================== */

.login-button {
  width: 100%;

  height: 42px;

  border: none;

  border-radius: 5px;

  background: #087d9a;

  color: #ffffff;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.login-button:hover {
  background: #076e87;
}

.login-button:active {
  transform: translateY(1px);
}

/* ========================================
   FORGOT PASSWORD
======================================== */

.forgot-password {
  display: inline-block;

  margin-top: 18px;

  color: #096b82;

  font-size: 15px;

  font-weight: 700;

  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* ========================================
   INFORMATION
======================================== */

.information {
  width: 100%;

  margin-top: clamp(45px, 6vw, 65px);

  border-top: 1px solid #d8d8d8;

  padding: clamp(45px, 6vw, 65px) clamp(18px, 5vw, 60px) 60px;
}

.info-block {
  width: 100%;

  max-width: 620px;

  margin: 0 auto clamp(45px, 6vw, 60px);
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block h2 {
  font-size: clamp(19px, 2vw, 22px);

  line-height: 1.25;

  font-weight: 700;

  margin-bottom: 12px;
}

.info-block p {
  font-size: 15.5px;

  line-height: 1.5;

  color: #444444;

  margin-bottom: 12px;
}

.support-link {
  color: #096b82;

  font-weight: 700;

  text-decoration: none;
}

.support-link:hover {
  text-decoration: underline;
}

.external-icon {
  font-size: 17px;

  font-weight: 400;

  margin-left: 2px;
}

/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) {
  .header {
    height: 82px;
  }

  .login-section {
    padding-top: 50px;
  }

  .login-container,
  .info-block {
    max-width: 650px;
  }

  .form-group input {
    height: 60px;
  }

  .login-button {
    height: 44px;
  }
}

/* ========================================
   DESKTOP
======================================== */

@media (min-width: 1024px) {
  .header {
    padding-left: 7%;
    padding-right: 7%;
  }

  .login-section {
    padding-top: 60px;
  }

  .login-container {
    max-width: 680px;
  }

  .information {
    padding-left: 7%;
    padding-right: 7%;
  }

  .info-block {
    max-width: 680px;
  }
}

/* ========================================
   LARGE DESKTOP
======================================== */

@media (min-width: 1440px) {
  .login-container,
  .info-block {
    max-width: 720px;
  }

  .login-section {
    padding-top: 70px;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 380px) {
  .header {
    height: 70px;
  }

  .login-section {
    padding-top: 25px;
  }

  .form-group input {
    height: 55px;
  }

  .password-group {
    margin-bottom: 45px;
  }

  .information {
    padding-top: 42px;
  }
}

.login-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.login-button.loading .button-text {
  display: none;
}

.login-button.loading .spinner {
  display: block;
}

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