:root{
  --green-dark:#0b5d36;
  --green:#157347;
  --green-soft:#edf7f1;
  --green-soft-2:#dff1e6;
  --gold:#d4af37;
  --gold-soft:#f6e8b5;
  --bg:#f4f7f4;
  --white:#ffffff;
  --text:#1f2a24;
  --muted:#6e7c74;
  --line:#e4ece7;
  --danger:#b42318;
  --danger-bg:#fdecec;
  --info:#1d4ed8;
  --info-bg:#eaf1ff;
  --success:#0f7a43;
  --success-bg:#e8f7ee;
  --shadow:0 10px 30px rgba(12, 58, 35, .10);
  --shadow-lg:0 18px 45px rgba(12, 58, 35, .15);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(212,175,55,.13), transparent 28%),
    radial-gradient(circle at top right, rgba(21,115,71,.14), transparent 24%),
    linear-gradient(180deg, #0a5d35 0px, #0d6a3d 230px, #f4f7f4 230px, #f4f7f4 100%);
  min-height:100vh;
}

.container{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.page-container{
  padding:28px 0 42px;
}

.card{
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.55);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}

.attendance-card{
  padding:0;
}

.header{
  position:relative;
  overflow:hidden;
  padding:34px 24px 30px;
  text-align:center;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(90deg, var(--green-dark) 0%, #1a7b4d 60%, #b59a2f 100%);
  color:#fff;
}

.header::before{
  content:"";
  position:absolute;
  inset:auto -60px -50px -60px;
  height:110px;
  background:rgba(255,255,255,.10);
  border-radius:100% 100% 0 0;
}

.header::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:160px;
  height:160px;
  background:rgba(255,255,255,.08);
  border-radius:50%;
}

.logo-row{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  gap:14px;
  margin-bottom:18px;
}

.logo-box{
  width:84px;
  height:84px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.98);
  color:var(--green-dark);
  font-weight:800;
  font-size:22px;
  border:2px solid rgba(212,175,55,.85);
  box-shadow:0 10px 20px rgba(0,0,0,.12);
  overflow:hidden;
  padding:8px;
}

.logo-box-image{
  background:#ffffff;
}

.header-logo-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.header h1,
h1{
  position:relative;
  z-index:2;
  margin:0;
  font-size:clamp(28px, 4vw, 46px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-0.02em;
}

.subtitle{
  position:relative;
  z-index:2;
  margin:12px 0 0;
  font-size:18px;
  line-height:1.45;
  font-weight:700;
  color:#f4f7d8;
}

.grid,
.attendance-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:22px;
  padding:22px;
  align-items:start;
}

.form-panel,
.camera-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
}

.form-panel h2,
.camera-panel h2{
  margin:0 0 14px;
  font-size:28px;
  line-height:1.15;
  color:var(--text);
  font-weight:900;
  letter-spacing:-0.02em;
}

.alert{
  border-radius:16px;
  padding:14px 16px;
  margin:16px 22px 0;
  font-size:15px;
  line-height:1.5;
  font-weight:600;
  border:1px solid transparent;
}

.alert.success{
  background:var(--success-bg);
  color:var(--success);
  border-color:#cfead9;
}

.alert.error{
  background:var(--danger-bg);
  color:var(--danger);
  border-color:#f3c8c8;
}

.alert.info{
  background:var(--info-bg);
  color:var(--info);
  border-color:#d8e5ff;
  margin:0 0 18px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  background:var(--green-soft);
  color:var(--green-dark);
  border-radius:999px;
  font-weight:800;
  font-size:15px;
  border:1px solid #d8eadf;
}

.badge::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:#16a34a;
  box-shadow:0 0 0 4px rgba(22,163,74,.12);
}

.badge.warn{
  background:#fff3df;
  color:#8a5a00;
  border-color:#f2ddb0;
}

.badge.warn::before{
  background:#d97706;
  box-shadow:0 0 0 4px rgba(217,119,6,.12);
}

.form-group{
  margin-bottom:18px;
}

label{
  display:block;
  margin-bottom:8px;
  font-weight:800;
  color:var(--green-dark);
  font-size:16px;
}

input,
select,
textarea{
  width:100%;
  border:1.5px solid #d9e5dd;
  background:#fcfdfc;
  color:var(--text);
  border-radius:16px;
  padding:14px 16px;
  font-size:16px;
  outline:none;
  transition:.22s ease;
}

input::placeholder,
textarea::placeholder{
  color:#98a59e;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#7ebb95;
  box-shadow:0 0 0 4px rgba(21,115,71,.12);
  background:#fff;
}

textarea{
  resize:vertical;
  min-height:120px;
  line-height:1.5;
}

small{
  display:block;
  margin-top:8px;
  color:var(--muted);
  line-height:1.45;
  font-size:13px;
}

.camera-placeholder{
  min-height:300px;
  border:2px dashed #cfe8d8;
  background:linear-gradient(180deg, #eef8f2 0%, #e4f1e9 100%);
  border-radius:22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:26px;
  color:var(--green-dark);
  gap:10px;
}

.camera-placeholder strong{
  font-size:24px;
  line-height:1.15;
  font-weight:900;
}

.camera-placeholder span{
  max-width:360px;
  font-size:16px;
  line-height:1.55;
  color:#5c6d65;
}

video,
canvas,
.preview-img{
  width:100%;
  border-radius:22px;
  border:1px solid #e6eee9;
  background:#f8fbf9;
  box-shadow:var(--shadow);
}

video,
.preview-img{
  aspect-ratio:4/3;
  object-fit:cover;
}

.camera-actions{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius:16px;
  padding:14px 18px;
  font-size:16px;
  font-weight:800;
  transition:.22s ease;
  text-align:center;
  min-height:52px;
}

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

.btn:active{
  transform:translateY(0);
}

.submit-btn,
.btn:not(.btn-outline):not(.btn-gold){
  background:linear-gradient(135deg, var(--green-dark), #157347);
  color:#fff;
  box-shadow:0 10px 18px rgba(21,115,71,.18);
}

.submit-btn:hover,
.btn:not(.btn-outline):not(.btn-gold):hover{
  box-shadow:0 14px 26px rgba(21,115,71,.22);
}

.btn-gold{
  background:linear-gradient(135deg, #e0bd47, #cfa12f);
  color:#183b27;
  box-shadow:0 10px 18px rgba(212,175,55,.22);
}

.btn-gold:hover{
  box-shadow:0 14px 24px rgba(212,175,55,.28);
}

.btn-outline{
  background:#fff;
  color:var(--green-dark);
  border:1.5px solid #d7e5db;
}

.btn-outline:hover{
  background:#f6faf7;
}

.submit-btn{
  width:100%;
  margin-top:6px;
  font-size:18px;
  min-height:56px;
  border-radius:18px;
}

.footer-note{
  text-align:center;
  margin:14px 0 0;
  color:var(--muted);
  line-height:1.45;
  font-size:14px;
}

@media (max-width: 992px){
  .grid,
  .attendance-grid{
    grid-template-columns:1fr;
  }

  .camera-panel{
    order:2;
  }

  .form-panel{
    order:1;
  }
}

@media (max-width: 768px){
  body{
    background:
      linear-gradient(180deg, #0b5d36 0px, #0d6a3d 160px, #f4f7f4 160px, #f4f7f4 100%);
  }

  .container{
    width:min(100%, calc(100% - 18px));
  }

  .page-container{
    padding:14px 0 24px;
  }

  .card{
    border-radius:24px;
  }

  .header{
    padding:26px 16px 24px;
  }

  .logo-row{
    gap:10px;
    margin-bottom:14px;
  }

  .logo-box{
    width:64px;
    height:64px;
    padding:6px;
    font-size:18px;
  }

  .subtitle{
    font-size:15px;
    margin-top:10px;
  }

  .grid,
  .attendance-grid{
    padding:14px;
    gap:16px;
  }

  .form-panel,
  .camera-panel{
    border-radius:20px;
    padding:16px;
  }

  .form-panel h2,
  .camera-panel h2{
    font-size:22px;
  }

  .alert{
    margin:14px 14px 0;
    font-size:14px;
    padding:12px 14px;
  }

  .badge{
    font-size:14px;
    padding:9px 14px;
  }

  label{
    font-size:15px;
  }

  input,
  select,
  textarea,
  .btn{
    font-size:16px;
  }

  .camera-placeholder{
    min-height:220px;
    padding:20px;
    border-radius:18px;
  }

  .camera-placeholder strong{
    font-size:20px;
  }

  .camera-placeholder span{
    font-size:15px;
  }

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

  .submit-btn{
    min-height:54px;
    font-size:17px;
  }

  .footer-note{
    font-size:13px;
  }
}

@media (max-width: 420px){
  .header h1,
  h1{
    font-size:22px;
  }

  .subtitle{
    font-size:14px;
  }

  .form-panel h2,
  .camera-panel h2{
    font-size:20px;
  }

  .logo-box{
    width:54px;
    height:54px;
    font-size:18px;
  }
}

/* =========================
   ADMIN DASHBOARD STYLE
   ========================= */

.admin-container {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.admin-shell {
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(12, 58, 35, .14);
  overflow: visible;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b5d36 0%, #157347 65%, #c9a434 100%);
  color: #ffffff;
}

.admin-top h1 {
  color: #ffffff;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.admin-top .subtitle {
  margin: 8px 0 0;
  color: #eef8f1;
  font-size: 15px;
  font-weight: 600;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions .btn {
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  white-space: nowrap;
}

.admin-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 10px;
  border-radius: 18px;
  background: #f2f8f5;
  border: 1px solid #dcebe2;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #dcebe2;
  transition: .2s ease;
}

.nav-link:hover {
  background: #eef8f2;
}

.nav-link.active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr .7fr .7fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 20px;
  background: #f8fbf9;
  border: 1px solid #e1e9e4;
}

.filter-grid label {
  margin-bottom: 8px;
}

.filter-grid .btn {
  width: 100%;
  min-height: 52px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.stat {
  min-height: 112px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e1e9e4;
  box-shadow: 0 10px 26px rgba(6, 63, 37, .08);
}

.stat span {
  display: block;
  color: #64756b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.progress-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e1e9e4;
  box-shadow: 0 10px 26px rgba(6, 63, 37, .08);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #e8f2ed;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}

.mini-card {
  background: #ffffff;
  border: 1px solid #e1e9e4;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(6, 63, 37, .08);
}

.mini-card h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.filter-stack .btn {
  width: 100%;
}

.muted-text {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid #e1e9e4;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
  background: #ffffff;
}

thead th {
  background: #0b5d36;
  color: #ffffff;
  padding: 14px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid #e8eee9;
  vertical-align: middle;
  color: #26332b;
  font-size: 14px;
}

tbody tr:hover {
  background: #f6faf7;
}

.wrap-cell {
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
  line-height: 1.45;
}

.photo-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #e2ece6;
  background: #f2f5f3;
}

.empty-photo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f2f5f3;
  border: 1px dashed #c9d8cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.table-actions form {
  margin: 0;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
  white-space: nowrap;
}

.btn-danger {
  background: #b42318;
  color: #ffffff;
}

.btn-danger:hover {
  background: #8f1c13;
}

.status-badge {
  background: #fff4dd;
  color: #8a5a00;
  border-color: #efd497;
}

/* Biar tombol link tidak jelek */
a.btn,
a.nav-link {
  text-decoration: none;
}

/* Biar alert admin tidak terlalu melebar aneh */
.admin-shell .alert {
  margin: 16px 0;
}

/* =========================
   RESPONSIVE ADMIN
   ========================= */

@media (max-width: 1050px) {
  .admin-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid-2 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .admin-container {
    width: min(100%, calc(100% - 18px));
    padding: 14px 0 28px;
  }

  .admin-shell {
    padding: 14px;
    border-radius: 22px;
  }

  .admin-top {
    padding: 18px;
    border-radius: 20px;
  }

  .admin-top h1 {
    font-size: 24px;
  }

  .admin-top .subtitle {
    font-size: 14px;
  }

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

  .admin-actions .btn {
    width: 100%;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

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

  .stat {
    min-height: auto;
  }

  .mini-card {
    padding: 16px;
    border-radius: 18px;
  }

  .mini-card h2 {
    font-size: 20px;
  }

  .progress-head {
    flex-direction: column;
  }

  table {
    min-width: 920px;
  }

  .table-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .table-actions .btn,
  .table-actions form,
  .table-actions button {
    width: 100%;
  }
}

.submit-after-photo {
  width: 100%;
  margin-top: 16px;
}

.submit-after-photo:disabled {
  cursor: not-allowed;
  opacity: .55;
  background: #c9d3cc;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

.submit-after-photo:disabled:hover {
  transform: none;
  box-shadow: none;
}

.submit-hint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.submit-hint.ready {
  color: var(--green-dark);
  font-weight: 800;
}

.period-info {
  margin: 14px 0 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff8df;
  color: #6f5200;
  border: 1px solid #f0d782;
  line-height: 1.55;
  font-size: 15px;
}

.period-info span {
  display: block;
  color: #8a6a13;
  margin-top: 4px;
}

.member-filter {
  grid-template-columns: 1fr 1fr 1.2fr .8fr .7fr .7fr;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.summary-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f7fbf8;
  border: 1px solid #e1e9e4;
}

.summary-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.summary-list strong {
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
}

.mini-progress {
  width: 130px;
  height: 12px;
  border-radius: 999px;
  background: #e8f2ed;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

@media (max-width: 1100px) {
  .member-filter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .member-filter {
    grid-template-columns: 1fr;
  }

  .mini-progress {
    width: 110px;
  }
}
.member-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 20px;
  padding: 20px;
  border-radius: 22px;
  background: #f7fbf8;
  border: 1px solid #e1e9e4;
}

.member-page-head h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.member-page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.member-form-layout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  align-items: start;
}

.member-form-card {
  padding: 24px;
}

.member-note-card {
  position: sticky;
  top: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.form-actions-row .btn {
  min-width: 180px;
}

@media (max-width: 900px) {
  .member-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .member-page-head .btn {
    width: 100%;
  }

  .member-form-layout {
    grid-template-columns: 1fr;
  }

  .member-note-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .form-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions-row .btn {
    width: 100%;
    min-width: unset;
  }
}

/* =========================
   LOGIN MASTER STYLE
   ========================= */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, .20), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 255, 255, .12), transparent 25%),
    linear-gradient(180deg, #0b5d36 0%, #0b5d36 42%, #f4f8f5 42%, #f4f8f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-wrapper {
  width: 100%;
  max-width: 480px;
}

.login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 57, 33, .22);
  border: 1px solid rgba(255, 255, 255, .60);
}

.login-hero {
  position: relative;
  padding: 34px 28px 30px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, .55), transparent 34%),
    linear-gradient(135deg, #0b5d36 0%, #157347 58%, #c6a331 100%);
}

.login-hero::before {
  content: "";
  position: absolute;
  left: -60px;
  right: -60px;
  bottom: -58px;
  height: 120px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, .13);
}

.login-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}

.login-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d4af37;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .16);
  overflow: hidden;
  padding: 8px;
}

.login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.login-hero p {
  position: relative;
  z-index: 2;
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 800;
  color: #f7f5d7;
}

.login-body {
  padding: 30px;
}

.login-alert {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #fdecec;
  color: #b42318;
  border: 1px solid #f3c8c8;
  font-weight: 700;
  line-height: 1.45;
}

.login-group {
  margin-bottom: 18px;
}

.login-group label {
  display: block;
  margin-bottom: 8px;
  color: #0b5d36;
  font-size: 15px;
  font-weight: 900;
}

.login-group input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1.5px solid #d9e5dd;
  background: #fbfdfb;
  color: #1f2a24;
  font-size: 16px;
  outline: none;
  transition: .22s ease;
}

.login-group input:focus {
  border-color: #73b58d;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 115, 71, .12);
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1.5px solid #d9e5dd;
  border-radius: 16px;
  background: #fbfdfb;
  overflow: hidden;
  transition: .22s ease;
}

.password-field:focus-within {
  border-color: #73b58d;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 115, 71, .12);
}

.password-field input {
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.password-field input:focus {
  border: none;
  box-shadow: none;
}

.password-field button {
  height: 56px;
  border: none;
  background: transparent;
  color: #0b5d36;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.login-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b5d36, #157347);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(21, 115, 71, .22);
  transition: .22s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(21, 115, 71, .28);
}

.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e4ece7;
  text-align: center;
  color: #6e7c74;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.login-footer strong {
  color: #0b5d36;
}

@media (max-width: 560px) {
  .login-page {
    padding: 14px;
    align-items: flex-start;
    padding-top: 42px;
  }

  .login-card {
    border-radius: 24px;
  }

  .login-hero {
    padding: 28px 20px 26px;
  }

  .login-hero h1 {
    font-size: 34px;
  }

  .login-hero p {
    font-size: 15px;
  }

  .login-body {
    padding: 22px;
  }

  .login-logo {
    width: 52px;
    height: 52px;
    font-size: 14px;
  }
}

.maps-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #e8f7ee;
  color: #0b5d36;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid #cfead9;
  white-space: nowrap;
}

.maps-link:hover {
  background: #0b5d36;
  color: #ffffff;
}

.maps-coordinate {
  margin-top: 6px;
  font-size: 12px;
  color: #6e7c74;
  line-height: 1.35;
  max-width: 140px;
  word-break: break-word;
}

.manual-card {
  max-width: 900px;
  margin: 0 auto;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form label {
  font-size: 13px;
  font-weight: 900;
  color: #1f3529;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: #0b5d36;
  box-shadow: 0 0 0 3px rgba(11, 93, 54, 0.12);
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 800;
}

.alert.success {
  background: #e8f7ee;
  color: #0b5d36;
  border: 1px solid #cfead9;
}

.alert.error {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #ffd5d2;
}

.admin-nav a.active {
  background: #0b5d36;
  color: #ffffff;
}

.period-info {
  background: #f5fbf7;
  border: 1px solid #dcefe4;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: #1f3529;
}

.manual-dashboard-form textarea {
  width: 100%;
  border: 1px solid #d7e5dc;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.manual-dashboard-form textarea:focus {
  border-color: #0b5d36;
  box-shadow: 0 0 0 3px rgba(11, 93, 54, 0.12);
}

.manual-dashboard-form .form-wide {
  grid-column: span 2;
}

@media (max-width: 800px) {
  .manual-dashboard-form .form-wide {
    grid-column: span 1;
  }
}

.print-title-card {
  margin-top: 20px;
}

@media print {
  body {
    background: #ffffff !important;
  }

  .no-print,
  .admin-nav,
  .admin-actions,
  .dashboard-filter {
    display: none !important;
  }

  .container,
  .admin-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .card,
  .admin-shell,
  .mini-card,
  .progress-box {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .admin-top {
    margin-bottom: 18px !important;
  }

  table {
    font-size: 11px !important;
  }

  th,
  td {
    padding: 6px !important;
  }

  .footer-note {
    margin-top: 18px !important;
  }
}

#video {
    transform: none !important;
    -webkit-transform: none !important;
}

.camera-frame {
    width:100%;
    aspect-ratio: 3/4;
    overflow:hidden;
    border-radius:24px;
    position:relative;
    background:#000;
}

.camera-frame video,
.camera-frame img {
    width:100%;
    height:100%;
    object-fit:cover;
}
