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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

.auth-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: #020202;
}

.auth-layout {
  min-height: 100vh;
  padding: 39px 46px;
}

.auth-header {
  margin-bottom: 24px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.auth-logo__image {
  display: block;
  width: 186px;
  max-width: 100%;
  height: auto;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

.auth-form-section {
  flex: 0 0 auto;
  width: 100%;
  max-width: 505px;
}

.auth-card {
  width: 100%;
  padding: 46px 35px 40px;
  border: 0.5px solid #878787;
  border-radius: 10px;
  background: #fff;
}

.auth-greeting {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  color: #7d7d7d;
}

.auth-title {
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 0 0 40px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #020202;
}

.auth-errors {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}

.auth-errors p {
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-field {
  margin-bottom: 24px;
}

.auth-label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #020202;
}

.auth-input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 0.6px solid #282828;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: #020202;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.auth-input {
  height: auto;
  min-height: 132px;
  padding: 16px;
  resize: vertical;
}

.auth-input::placeholder {
  color: #ababab;
}

.auth-input:focus {
  border-color: #020202;
  box-shadow: 0 0 0 3px rgba(2, 2, 2, 0.08);
}

.auth-input--error {
  border-color: #b91c1c;
}

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

.auth-password-wrap {
  position: relative;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #020202;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.auth-eye-icon {
  display: block;
}

.auth-eye-icon--visible {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-eye-icon--hidden {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-eye-icon--visible {
  display: block;
}

.auth-field-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b91c1c;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #020202;
  cursor: pointer;
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #020202;
}

.auth-forgot {
  font-size: 14px;
  color: #4d4d4d;
  text-decoration: none;
  white-space: nowrap;
}

.auth-forgot:hover {
  color: #020202;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  height: 57px;
  border: 0;
  border-radius: 6px;
  background: #020202;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.auth-submit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-submit:hover {
  background: #333;
}

.auth-footer {
  margin: 32px 0 0;
  text-align: center;
  font-size: 14px;
  color: #7d7d7d;
}

.auth-footer a {
  color: #020202;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-illustration-section {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.auth-illustration {
  width: 100%;
  max-width: 520px;
  height: auto;
}

@media (max-width: 1024px) {
  .auth-main {
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
  }

  .auth-form-section {
    max-width: 100%;
  }

  .auth-illustration-section {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 600px) {
  .auth-layout {
    padding: 24px 20px;
  }

  .auth-card {
    padding: 32px 24px 28px;
  }

  .auth-title {
    font-size: 36px;
  }

  .auth-options {
    flex-direction: column;
    align-items: flex-start;
  }
}
