:root {
  --text-dark: #212729;
  --text-muted: rgba(0, 0, 0, 0.6);
  --line: rgba(0, 0, 0, 0.1);
  --danger: #ee3a43;
  --page: #fdfdfd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.login-page {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--page);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.signin-root {
  position: relative;
  min-height: max(810px, 100vh);
  width: 100%;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.signin-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 1037px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.signin-logo {
  position: relative;
  z-index: 1;
  width: 286.111px;
  height: 96.667px;
  padding: 21.333px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17.778px;
}

.signin-logo-icon {
  width: 42.667px;
  height: 42.667px;
  flex-shrink: 0;
}

.signin-logo-text {
  font-size: 42.667px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.7067px;
  color: #1d1d1d;
  white-space: nowrap;
}

.signin-card {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  width: 474px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.signin-title-row {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signin-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  color: #000;
}

.signin-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.signin-close img {
  width: 18px;
  height: 18px;
}

.signin-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signin-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.signin-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.signin-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.signin-switch-link.is-active {
  border-color: var(--danger);
  background: rgba(238, 58, 67, 0.08);
  color: var(--danger);
}

.signin-auth-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #000;
}

.field-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #000;
  outline: none;
}

.field-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.signin-submit {
  margin-top: 0;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.signin-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.divider-line {
  flex: 1;
  min-width: 0;
  height: 1px;
  background: var(--line);
}

.divider-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--text-muted);
  white-space: nowrap;
}

.social-row {
  width: 100%;
  display: flex;
  gap: 8px;
}

.social-btn {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #000;
  cursor: pointer;
}

.social-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.social-btn span {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.social-google {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.social-facebook {
  width: 26px;
  height: 24px;
}

.social-x {
  padding: 12px;
}

.social-x img {
  width: 22px;
  height: 20px;
}

.signin-footer-text {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #000;
}

.signin-signup {
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
}

@media (max-width: 620px) {
  .signin-root {
    min-height: 100vh;
    padding: 20px 12px;
    justify-content: flex-start;
  }

  .signin-logo {
    width: auto;
    height: auto;
    padding: 8px;
    gap: 10px;
  }

  .signin-logo-icon {
    width: 28px;
    height: 28px;
  }

  .signin-logo-text {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .signin-card {
    width: min(474px, 100%);
    margin-top: 8px;
    padding: 20px;
    gap: 20px;
  }

  .signin-title {
    font-size: 28px;
    line-height: 34px;
  }

  .social-row {
    flex-wrap: wrap;
  }

  .social-btn {
    min-width: calc(50% - 4px);
  }

  .social-x {
    min-width: 100%;
  }
}
