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

:root {
  --brown-dark: #3D2B1F;
  --brown-mid: #5C3D2E;
  --brown-light: #8B7355;
  --brown-input: #7A6652;
  --gold: #FFD700;
  --cream: #F5E6C8;
  --cream-light: #FAF0DC;
  --white: #FFFFFF;
  --text-dark: #2D1B0E;
  --text-muted: #6B5744;
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
}

/* ===== LEFT PANEL ===== */
.panel-left {
  position: relative;
  flex: none;
  width: 19%;
  background-color: var(--brown-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  overflow: hidden;
}

.panel-left-content {
  position: relative;
  z-index: 1;
}

.brand-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.brand-title .highlight {
  color: var(--gold);
}

.brand-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.brand-welcome {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.clock {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -1px;
}

.date-display {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

/* ===== RIGHT PANEL ===== */
.panel-right {
  position: relative;
  flex: 1;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.panel-right .bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  background-color: var(--cream-light);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-card h2 {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background-color: var(--brown-input);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
  box-shadow: 0 0 0 3px rgba(122, 102, 82, 0.35);
}

.forgot-password {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.btn-login {
  display: block;
  width: 55%;
  margin: 2rem auto 0;
  padding: 0.7rem 1.5rem;
  background-color: var(--brown-dark);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-login:hover {
  background-color: var(--brown-mid);
}

.btn-login:active {
  transform: scale(0.98);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .brand-title {
    font-size: 1.65rem;
  }
  .clock {
    font-size: 2.75rem;
  }
  .login-card {
    padding: 2rem 1.5rem;
  }
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .panel-left {
    flex: none;
    padding: 2rem 1.75rem;
    min-height: auto;
  }

  .brand-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .brand-desc,
  .brand-welcome {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .brand-welcome {
    margin-bottom: 1.5rem;
  }

  .clock {
    font-size: 2.5rem;
  }

  .date-display {
    font-size: 0.9rem;
  }

  .panel-right {
    flex: 1;
    padding: 1.5rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .login-card {
    max-width: 100%;
  }

  .btn-login {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .panel-left {
    padding: 1.5rem 1.25rem;
  }

  .brand-title {
    font-size: 1.3rem;
  }

  .clock {
    font-size: 2rem;
  }

  .login-card {
    padding: 1.5rem 1.25rem;
  }

  .login-card h2 {
    font-size: 0.95rem;
  }
}
