:root{
  --bg: #e9e9e9;
  --card: #dcdcdc;
  --text: #1a1a19;
  --muted: rgba(26, 26, 25, 0.65);
  --border: rgba(26, 26, 25, 0.55);
  --input-border: rgba(26, 26, 25, 0.55);
  --button: #5f7f3a;
  --button-text: #eaf0e1;

  --radius: 14px;
  --card-radius: 14px;
  --shadow: 0 2px 0 rgba(0,0,0,0.06);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.page{
  min-height: 100%;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 40px 16px;
}

.card{
  width: min(980px, 100%);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;

  padding: 26px;
}

.card_left{
  display: grid;
  place-items: center;
  padding-top: 0;
}



.illustration{
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.card_right{
  margin-top: 40px;
}

.header_login{
  text-align: center;
  margin-top: 64px;
  margin-bottom: 24px;
}

.header_register{
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

.title{
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form{
  display: grid;
  gap: 16px;
  margin-top: 8px;
  grid-template-columns: 1fr 1fr;
}

.message{
  grid-column: 1 / -1;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;

  color: transparent;
  background: transparent;
  border: 1px solid transparent;
}

.message.error{
  color: #c62828;
  background: #ffe6e6;
  border-color: #ffb3b3;
}

.message-slot.error-message,
.message-slot.success-message {
  display: flex;
}

.message-slot{
  grid-column: 1 / -1;
  min-height: 44px;
  display: none;
  align-items: center;
  padding: 0 12px;
  margin: 10px 0;
  border-radius: 6px;

  background: transparent;
  border: 1px solid transparent;
  color: transparent;
}

.input{
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 1.6px solid var(--input-border);
  background: rgba(255,255,255,0.25);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  grid-column: 1 / -1;
}

.input_half{
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 1.6px solid var(--input-border);
  background: rgba(255,255,255,0.25);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.input::placeholder, .input_half::placeholder{
  color: rgba(26,26,25,0.55);
}

.input:focus, .input_half:focus{
  box-shadow: 0 0 0 3px rgba(95, 127, 58, 0.18);
  border-color: rgba(95, 127, 58, 0.9);
}

.row{
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  grid-column: 1 / -1;
}

.link{
  font-size: 13px;
  color: rgba(26,26,25,0.8);
  text-decoration: none;
}

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

.btn{
  height: 46px;
  border: none;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  grid-column: 1 / -1;
}

.btn:active{
  transform: translateY(1px);
}


.brand{
  display: grid;
  justify-items: center;
  margin-top: 18px;
  padding-bottom: 6px;
}

.brand_logo{
  width: 200px;
  max-width: 70%;
  height: auto;
  opacity: 0.95;
}

@media (max-width: 860px){
  .card{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .illustration{
    max-width: 520px;
    aspect-ratio: 16 / 10;
  }

  .card__right{
    padding: 0;
  }
}

.terms{
  grid-column: 1 / -1;
  margin-top: 6px;
}

.terms_label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.terms_label input{
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.terms_label a{
  color: var(--button);
  text-decoration: underline;
}

.terms_label a:hover{
  text-decoration: none;
}
