/* =========================================
   Mozamorph — Login (match dashboard theme)
   ========================================= */

/* Palet sama dengan dashboard */
:root {
  --bg: #0b1220;
  --card: #121a2b;
  --text: #e6ebff;
  --muted: #9aa7d4;
  --primary: #6da5ff;
  --outline: #1a2540;
}

/* Reset ringan */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

/* Layout dasar */
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: radial-gradient(80% 60% at 50% -10%, rgba(77, 126, 255, 0.12), transparent 60%), var(--bg);
  color: var(--text);
  padding: 18px;
}

/* Kartu login */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Judul */
.card h2 {
  margin: 0 0 14px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 22px;
}

/* Input & Button – base */
.card input,
.card button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
}

/* Input */
.card input {
  background: #0f1a2f;
  border: 1px solid var(--outline);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card input::placeholder {
  color: var(--muted);
}
.card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 165, 255, 0.18);
}

/* Row 2 tombol pertama (Sign In / Sign Up) */
.row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.row > * {
  flex: 1;
}

/* Tombol – gaya umum */
.card button {
  border: 0;
  background: #1a2540;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.card button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.card button:active {
  transform: translateY(0);
}

/* Primary & Secondary untuk .row */
.row button:first-child {
  /* Sign In */
  background: var(--primary);
  color: #081224;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(109, 165, 255, 0.35);
}
.row button:last-child {
  /* Sign Up */
  background: #23314f;
  border: 1px solid var(--outline);
}

/* Dua tombol di bawah row (Google, Forgot) */
.card > button:nth-of-type(1) {
  /* Sign in with Google */
  background: #0f1a2f;
  border: 1px solid var(--outline);
}
.card > button:nth-of-type(1):hover {
  box-shadow: 0 0 0 3px rgba(109, 165, 255, 0.12);
}

.card > button:nth-of-type(2) {
  /* Forgot Password */
  background: transparent;
  border: 1px dashed var(--outline);
  color: var(--text);
}
.card > button:nth-of-type(2):hover {
  border-color: var(--primary);
}

/* Caption */
.muted {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* Responsif kecil */
@media (max-width: 480px) {
  .card {
    padding: 18px;
  }
  .card h2 {
    font-size: 20px;
  }
  .card input,
  .card button {
    font-size: 13px;
    padding: 11px 12px;
  }
}
