/* ==============================
   FMA-HR UI COLOR SYSTEM
============================== */
:root {
  --primary: #123B5D;
  --primary-hover: #0E2F4A;
  --accent: #F28C28;

  --bg-app: #F5F7FA;
  --bg-card: #FFFFFF;

  --text-primary: #1F2933;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;

  --border: #E5E7EB;
  --input-focus: #2563EB;

  --error: #DC2626;
}

/* ==============================
   PAGE RESET & BASE
============================== */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

/* ==============================
   LOGIN CARD
============================== */
form {
  background: var(--bg-card);
  width: 100%;
  max-width: 380px;
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Optional title (future-proof) */
form::before {
  content: "FMA-HR Login";
  display: block;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

/* ==============================
   LABELS & INPUTS
============================== */
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
  color: var(--text-muted);
}

input:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==============================
   BUTTON
============================== */
button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: var(--primary-hover);
}

button:active {
  transform: translateY(1px);
}

/* ==============================
   ERROR MESSAGE
============================== */
p[style*="color:red"] {
  background: rgba(220, 38, 38, 0.08);
  color: var(--error) !important;
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: center;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 420px) {
  form {
    padding: 24px;
  }
}

/* ==============================
   LOGIN WRAPPER
============================== */
.login-wrapper {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* ==============================
   LOGO
============================== */
.login-logo {
  margin-bottom: 20px;
}

.login-logo img {
  max-width: 160px;
  height: auto;
}

/* ==============================
   LOGIN CARD
============================== */
form {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* Remove title pseudo-element (logo replaces it) */
form::before {
  content: none;
}
