:root {
  --green: #018A6C;
  --black: #000;
  --white: #fff;
  --gray: #f5f5f5;
  --border: #d9d9d9;
  --muted: #6b7280;
  --font: "Roboto", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
}

body {
  background: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Branding */
.branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* 👈 Rata kiri */
  gap: 10px;
  padding: 30px 60px;            /* Jarak kiri-kanan */
  width: 100%;
  animation-delay: 0.1s;
}

.branding-logo {
  height: 24px;          /* 🔧 Ukuran disesuaikan agar sejajar teks */
  width: 24px;
  object-fit: contain;
}

.branding-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.5px;
}

/* Container utama */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
  padding: 40px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.left {
  flex: 1;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fdfdfd;
}

.left img {
  max-width: 100%;
  height: auto;
}

.right {
  flex: 1;
  padding: 50px;
}

h2 {
  margin-bottom: 24px;
  color: var(--black);
  font-size: 22px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease;
}

input:focus {
  border-color: var(--green);
}

.btn {
  width: 100%;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #027a5f;
}

.divider {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  color: var(--muted);
}

.btn-google {
  width: 100%;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-google:hover {
  background: #fafafa;
}

.btn-google img {
  height: 20px;
  width: 20px;
  margin-right: 10px;
}

/* Animasi Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeIn 0.7s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsif */
@media (max-width: 850px) {
  .card {
    flex-direction: column;
  }

  .left {
    padding: 20px;
  }

  .right {
    padding: 30px;
  }

  /* ✅ Branding tetap sejajar horizontal */
  .branding {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
  }

  .branding-logo {
    height: 24px;
    width: auto;
  }

  .branding-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
  }
}
/* ===============================
   Tambahan kecil untuk Login Page
   =============================== */

/* Efek focus & error */
input.error {
  border-color: #e63946;
  background: #fff6f6;
}

.form-group small.error-text {
  color: #e63946;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

/* Tombol dalam keadaan loading / disabled */
.btn:disabled,
.btn-google:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Pesan notifikasi login */
.alert {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  animation: fadeIn 0.5s ease forwards;
}

.alert.success {
  background: #e6f9f2;
  color: #027a5f;
  border: 1px solid #b4ebd5;
}

.alert.error {
  background: #ffe9e9;
  color: #d62828;
  border: 1px solid #f5b5b5;
}

/* Efek fade tambahan */
.fade-in-slow {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlow 1s ease forwards;
}

@keyframes fadeInSlow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* (Opsional) Styling untuk tombol Logout di dashboard nanti */
.logout {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout:hover {
  background: var(--green);
  color: var(--white);
}
