﻿/* Pengaturan dasar untuk seluruh halaman. */
* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: #14351d;
  font-family: Arial, sans-serif;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Dua kolom utama: foto di kiri dan formulir di kanan. */
.login-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 44.6% 55.4%;
}

.welcome-panel {
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  background: linear-gradient(90deg, rgba(4, 48, 19, .78), rgba(4, 48, 19, .18)), url('rumah-kaca-plastik.png') center / cover no-repeat;
}

.welcome-content {
  padding: 30px;
}

.welcome-content h1 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.2px;
}

.welcome-line {
  display: block;
  width: 57px;
  height: 5px;
  margin: 18px 0 13px;
  border-radius: 5px;
  background: #a6e65a;
}

.welcome-content p {
  margin: 0;
  font-size: 24px;
}

/* Lengkungan sudut dibuat dengan CSS, bukan gambar tangkapan layar. */
.login-panel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  padding: 55px 40px;
  background: #fff;
}

.login-panel::before,
.login-panel::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: #e7f1e0;
}

.login-panel::before {
  width: 260px;
  height: 150px;
  top: -50px;
  right: -35px;
  border-radius: 0 0 0 100%;
  box-shadow: inset -55px 28px #c7ddbb;
}

.login-panel::after {
  width: 380px;
  height: 160px;
  bottom: -130px;
  left: -65px;
  border-radius: 50%;
  box-shadow: 400px 10px 0 25px #edf5e9;
}

.login-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 457px;
}

/* Logo dibuat dari dua bentuk daun CSS dan teks biasa. */
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 39px;
  color: #14351d;
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.leaf-logo {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 43px;
}

.leaf-logo i {
  position: absolute;
  top: 15px;
  left: 2px;
  width: 24px;
  height: 28px;
  border-radius: 0 100% 0 100%;
  background: #327923;
}

.leaf-logo i + i {
  top: 0;
  left: 23px;
  width: 26px;
  height: 38px;
  border-radius: 100% 0 100% 0;
  background: #69ad33;
}

h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(38px, 4.5vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.subtitle {
  margin: 14px 0 20px;
  color: #777782;
  text-align: center;
  font-size: 18px;
}

/* Input, label, dan tombol form menggunakan elemen HTML asli. */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 16px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 49px;
  padding: 0 19px;
  border: 1px solid #9da5b1;
  border-radius: 9px;
  outline-color: #3e863b;
  color: #213b29;
  font-size: 16px;
}

.field input::placeholder {
  color: #858792;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 52px;
}

.show-password {
  position: absolute;
  top: 0;
  right: 5px;
  display: grid;
  width: 44px;
  height: 100%;
  place-items: center;
  border: 0;
  background: transparent;
  color: #777b80;
}

.show-password svg {
  width: 24px;
  height: 24px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  font-size: 16px;
  font-weight: 600;
}

.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
}

.remember input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: #175c29;
}

.forgot-password {
  padding: 0;
  border: 0;
  background: transparent;
  color: #39813c;
  font-weight: 700;
}

.login-button {
  width: 100%;
  height: 55px;
  border: 0;
  border-radius: 12px;
  background: #105e28;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.message {
  margin: 0;
  color: #735a19;
  font-size: 14px;
  line-height: 1.4;
}

.message:not(:empty) {
  margin-top: 12px;
}

.divider, .footer-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #858691;
  font-size: 16px;
  white-space: nowrap;
}

.divider {
  margin: 12px 0;
}

.divider span:first-child, .divider span:last-child,
.footer-label span:first-child, .footer-label span:last-child {
  flex: 1;
  height: 1px;
  background: #a7a9ae;
}

.google-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: 45px;
  border: 1px solid #89919d;
  border-radius: 10px;
  background: white;
  color: #173a21;
  font-size: 17px;
  font-weight: 700;
}

.google-icon {
  background: conic-gradient(#4285f4 0 25%, #34a853 25% 42%, #fbbc05 42% 60%, #ea4335 60% 77%, #4285f4 77%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.footer-label {
  margin: 27px 15px 0;
}

/* Pada ponsel, foto dipindahkan ke atas dan form berada di bawahnya. */
@media (max-width: 700px) {
  .login-layout {
    display: block;
  }

  .welcome-panel {
    min-height: 270px;
  }

  .welcome-content h1 {
    font-size: 36px;
  }

  .welcome-content p {
    font-size: 20px;
  }

  .login-panel {
    min-height: 600px;
    padding: 48px 24px;
  }

  .brand {
    margin-bottom: 28px;
  }
}

/* Footer berada setelah konten dan memiliki warna yang sama dengan halaman lain. */
.site-footer {
  padding: 11px 20px;
  background: #164724;
  color: white;
  text-align: center;
  font-size: 14px;
}

