/* ===== LOGIN PAGE WITH FULL-PAGE LOGO ===== */

/* Body background + centered logo watermark */
body.login-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #ffffff 0, #020537 55%, #000014 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-wrapper {
  min-height: 100vh;
}

.login-card {
  border-radius: 12px;
  overflow: hidden;
}

.login-card-body {
  padding: 24px 22px 22px;
}

.login-logo-img {
  max-width: 80px;
  height: auto;
}

/* Big logo watermark in the middle of the page */
body.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/images/logo-big.png") center center no-repeat;
  background-size: 60vmin;   /* scale based on viewport */
  opacity: 0.08;             /* very light watermark */
  pointer-events: none;      /* clicks go through */
  z-index: 0;
}

/* Center login card above the logo */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  z-index: 1;                /* above watermark */
}

/* Login card */
.login-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  text-align: left;
}

/* Small logo inside the card (optional) */
.login-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.login-logo img {
  height: 32px;
}

/* Titles */
.app-name {
  margin: 0;
  font-size: 20px;
  color: #1b3a8a;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.login-title {
  margin: 6px 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: #444444;
}

/* Form */
.form-group {
  text-align: left;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #5b5b5b;
}

/* Input with icon */
.input-with-icon {
  position: relative;
}

.input-with-icon .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #888888;
}

.input-with-icon input {
  width: 100%;
  padding: 10px 10px 10px 32px;
  border-radius: 30px;
  border: 1px solid #cbd5f5;
  font-size: 14px;
  background: #f7f9ff;
  transition: all 0.15s ease-out;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  background: #ffffff;
}

/* Primary button (login) */
.btn-primary {
  margin-top: 18px;
  width: 100%;
  padding: 10px 0;
  border-radius: 28px;
  border: none;
  background: linear-gradient(90deg, #311b92, #512da8);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(49, 27, 146, 0.35);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #25146c, #3d1f85);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(49, 27, 146, 0.4);
}

/* Links & footer */
.forgot-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #311b92;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-footer {
  margin-top: 24px;
  padding-top: 12px;
  font-size: 11px;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

/* Mobile tweaks for login card */
@media (max-width: 400px) {
  .login-card {
    padding: 24px 18px 18px;
    border-radius: 18px;
  }
}

/* ===== GLOBAL LAYOUT FOR OTHER PAGES ===== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
}

/* Generic card */
.app-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 20px;
}

/* Page title */
.app-page-title {
  font-size: 22px;
  margin-bottom: 10px;
}

/* Tables */
.app-table {
  width: 100%;
  font-size: 13px;
}

.app-table th {
  background: #f3f4f6;
  font-weight: 600;
}

/* Buttons spacing */
.app-actions {
  margin-bottom: 15px;
}

/* Top bar (works for admin and employee) */
.app-topbar {
  background: #111827;
  color: #e5e7eb;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.app-topbar-left img {
  height: 26px;
}

.app-topbar-right {
  font-size: 14px;
  color: #d1d5db;
}

/* Main container width */
main.container {
  max-width: 960px;
}

/* Dashboard cards grid */
.emp-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* Action cards inside dashboard */
.emp-action-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  main.container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .emp-welcome-card {
    margin-top: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .emp-actions-grid {
    grid-template-columns: 1fr; /* one card per row on small screens */
  }
}

/* Very small mobiles */
@media (max-width: 480px) {
  .app-topbar {
    padding: 8px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .app-topbar-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    row-gap: 4px;
  }
}
