@charset "UTF-8";

/* --------------------------------------
   ZAAB Management System - Core Theme
---------------------------------------*/

:root {
  --black: #111111;
  --white: #ffffff;

  --gray-25: #fcfcfd;
  --gray-50: #f7f7f8;
  --gray-100: #f2f2f3;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #2d2f33;

  --green-50: #f2faf5;
  --green-100: #e6f3ec;
  --green-200: #cfe8dc;
  --green-600: #198754;
  --green-700: #146c43;

  --danger-50: #fee2e2;
  --danger-100: #fecaca;
  --danger-700: #991b1b;

  --success-50: #e6f3ec;

  --focus: #9fd3b6;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 12px 36px rgba(0, 0, 0, .08);
  --shadow-auth: 0 18px 44px rgba(0, 0, 0, .18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  background: var(--gray-50);
}

/* --------------------------------------
   Shared Page Shell
---------------------------------------*/

.home-body {
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(230, 243, 236, .92), rgba(255, 255, 255, .96)),
    var(--gray-50);
  color: var(--black);
}

.home-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.home-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.home-logo {
  width: 180px;
  max-width: 75%;
  margin: 0 auto 18px;
}

.home-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.home-card h1,
.auth-card h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--black);
}

.home-subtitle,
.auth-subtitle {
  margin: 8px 0 22px;
  color: var(--gray-600);
  font-size: .95rem;
}

.home-actions {
  display: grid;
  gap: 12px;
}

.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  border: 1px solid var(--green-200);
  color: var(--black);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.home-btn:hover,
.home-btn:focus {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.home-footer-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--gray-600);
  font-size: .9rem;
}

.home-footer-actions a,
.auth-links a,
.profile-upload-link {
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--green-200);
}

/* --------------------------------------
   Authentication Pages
---------------------------------------*/

.auth-body {
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(25, 135, 84, .96), rgba(20, 108, 67, .98));
  color: var(--black);
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-card {
  width: 100%;
  max-width: 390px;
  background: var(--white);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-auth);
  text-align: center;
}

.auth-logo {
  width: 210px;
  max-width: 78%;
  margin: 0 auto 18px;
}

.auth-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.auth-card h1 {
  text-align: center;
  font-size: 1.35rem;
}

.auth-links {
  margin-top: 16px;
  text-align: center;
}

/* --------------------------------------
   Forms
---------------------------------------*/

.auth-field {
  margin-bottom: 14px;
  text-align: left;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--black);
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--green-200);
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--black);
  font: inherit;
  box-sizing: border-box;
}

.auth-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}

.home-card,
.auth-card,
.profile-card {
  overflow: hidden;
}

.auth-field textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-field input[type="file"] {
  padding: 13px 14px;
  background: var(--gray-50);
}

.auth-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-color: var(--gray-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%23198754' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: 3px solid rgba(159, 211, 182, .55);
  border-color: var(--focus);
  background: var(--white);
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 16px;
  color: var(--gray-600);
  font-weight: 600;
}

.auth-check input {
  width: 17px;
  height: 17px;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--green-600);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-submit:hover,
.auth-submit:focus {
  background: var(--green-700);
}

/* --------------------------------------
   Alerts
---------------------------------------*/

.auth-alert {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.auth-alert-success {
  background: var(--green-100);
  border: 1px solid var(--green-200);
  color: var(--black);
}

.auth-alert-danger {
  background: var(--danger-50);
  border: 1px solid var(--danger-100);
  color: var(--danger-700);
}

/* --------------------------------------
   Profile / Summary Cards
---------------------------------------*/

.profile-card {
  max-width: 520px;
}

.profile-photo-wrap {
  display: grid;
  place-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-photo,
.profile-photo-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 3px solid var(--green-200);
}

.profile-photo {
  object-fit: cover;
  background: var(--gray-50);
}

.profile-photo-placeholder {
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--black);
  font-size: 2rem;
  font-weight: 900;
}

.profile-upload-link {
  font-size: .9rem;
}

.profile-grid {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  text-align: left;
}

.profile-stat {
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  text-align: left;
}

.profile-stat span {
  display: block;
  color: var(--gray-600);
  font-size: .85rem;
  margin-bottom: 4px;
}

.profile-stat strong {
  display: block;
  color: var(--black);
  font-size: 1.15rem;
}

.profile-actions {
  margin-top: 16px;
}

/* --------------------------------------
   Accessibility / Responsive
---------------------------------------*/

:focus-visible {
  outline: 3px solid rgba(159, 211, 182, .65);
  outline-offset: 2px;
}

@media (min-width: 700px) {
  .home-card {
    max-width: 620px;
    padding: 34px;
  }

  .home-card h1 {
    font-size: 1.9rem;
  }

  .home-actions {
    grid-template-columns: 1fr 1fr;
  }

  .auth-card {
    padding: 30px;
  }

  .auth-card h1 {
    font-size: 1.55rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}