
:root {
  --green: #193b2a;
  --green-dark: #10281c;
  --gold: #c5a66a;
  --cream: #faf9f5;
  --text: #23352b;
  --muted: #879087;
  --border: #e3e8e1;
}

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

body {
  font-family: "Manrope", sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

button, input {
  font: inherit;
}

.auth-layout {
  display: grid;
  grid-template-columns: 53% 47%;
  min-height: 100vh;
}

/* Левая часть */

.auth-visual {
  position: relative;
  min-height: 100vh;
  background:
    url("../images/orchard.jpg")
    center / cover no-repeat,
    #244631;
  color: white;
  overflow: hidden;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 34, 20, .66),
    rgba(10, 34, 20, .25) 40%,
    rgba(10, 34, 20, .85)
  );
}

.visual-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 54px 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  color: var(--gold);
  font-size: 42px;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.5;
}

.brand-name span {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 500;
}

.eyebrow,
.form-eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

.visual-heading h1 {
  margin: 24px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 4.1vw, 72px);
  font-weight: 500;
  line-height: 1.18;
}

.visual-heading h1 em {
  color: #e2c78f;
  font-weight: 500;
}

.visual-heading p {
  max-width: none;
  font-size: 15px;
  line-height: 1.9;
  color: #e0e8df;
  white-space: nowrap;
}

.visual-footer {
  font-size: 12px;
  color: #d0d9ce;
}

/* Правая часть */

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 35px;
  position: relative;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 410px;
}

.mobile-brand {
  display: none;
}

.form-header {
  margin-bottom: 38px;
}

.welcome-icon {
  width: 56px;
  height: 56px;
  background: #e8efe6;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 27px;
  margin-bottom: 30px;
}

.form-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 3vw, 43px);
  font-weight: 600;
  margin: 12px 0;
  color: var(--green);
}

.form-header p {
  font-size: 14px;
  line-height: 1.8;
  color: #79857b;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-group input {
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  outline: none;
  font-size: 14px;
  transition: .2s;
}

.form-group input:focus {
  border-color: #6c9b7b;
  box-shadow: 0 0 0 3px
    rgba(56, 125, 77, .09);
}

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

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 105px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #67816e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.login-button {
  width: 100%;
  height: 56px;
  margin-top: 10px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  transition: .2s;
}

.login-button:hover {
  background: #28553b;
  transform: translateY(-1px);
}

.login-button span {
  font-size: 21px;
}

.login-message {
  font-size: 13px;
  line-height: 1.5;
  color: #a44839;
}

.login-message:not(:empty) {
  margin: 10px 0;
}

.auth-help {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 38px;
}

.auth-help p {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-help span {
  font-size: 12px;
  color: #879087;
  line-height: 1.7;
}

.panel-footer {
  position: absolute;
  bottom: 28px;
  font-size: 11px;
  color: #a4aca5;
}

/* Адаптация */

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 65px 24px 90px;
  }

  .mobile-brand {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 55px;
  }
}

@media (max-width: 480px) {
  .auth-panel {
    justify-content: flex-start;
    padding-top: 40px;
  }

  .form-header {
    margin-bottom: 30px;
  }

  .form-header h2 {
    font-size: 34px;
  }

  .panel-footer {
    bottom: 20px;
  }
}


@media (min-width: 901px) and (max-width: 1200px) {
  .visual-heading p {
    font-size: 12px;
  }
}