/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  font-family: Arial, sans-serif;
  margin: 30px;
  background: #f5f5f5;
}

h1, h2 {
  color: #222;
}

.dashboard {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h2 {
  margin: 0;
  font-size: 36px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 14px;
}

th {
  background: #222;
  color: white;
}


 * {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28rem),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  color: #111827;
}

.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  padding: 42px;
  text-align: center;
}

.auth-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #020617, #1f2937);
  color: #fff;
  font-size: 32px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28);
}

.auth-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 12px 0 26px;
  color: #64748b;
  font-size: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  color: #94a3b8;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8f0;
}

.auth-form {
  text-align: left;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #111827;
}

.auth-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 16px;
  font: inherit;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 24px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  cursor: pointer;
}

.remember-me input {
  width: 18px;
  height: 18px;
}

.auth-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #020617, #111827);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.auth-button:hover {
  transform: translateY(-1px);
}

.auth-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 14px;
}

.auth-footer span:last-child {
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-card h1 {
    font-size: 28px;
  }
}

.app-header {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020617;
  color: #fff;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.role-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #cbd5e1;
  text-transform: capitalize;
}

.logout-button {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #020617;
  font-weight: 700;
  cursor: pointer;
}