
:root{
  --bg:#f4f7ff;
  --card:#ffffff;
  --text:#1b2430;
  --muted:#6b778c;
  --blue:#3c5cff;
  --blue2:#6a7bff;
  --blue3:#8ea0ff;
  --shadow: 0 14px 30px rgba(20, 35, 90, .14);
  --shadow2: 0 10px 20px rgba(20, 35, 90, .10);
  --radius:18px;
  --radius2:24px;
  --stroke: rgba(16, 31, 60, .08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: #fff;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
button{font-family:inherit}
img{max-width:100%; display:block}

.app-wrap{
  min-height:100%;
  background: var(--bg);
  display:flex;
  justify-content:center;
  padding:0;
}

.phone{
  width:100%;
  max-width:420px;
  min-height:100vh;
  background: var(--bg);
  position:relative;
  overflow:hidden;
}

/* Header like screenshot */
.header{
  background: linear-gradient(180deg, rgba(60,92,255,1) 0%, rgba(106,123,255,1) 55%, rgba(142,160,255,1) 100%);
  padding: 18px 18px 78px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  position:relative;
  box-shadow: 0 18px 35px rgba(60, 92, 255, .20);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.userchip{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.avatar{
  width:38px;height:38px;border-radius:999px;
  background: rgba(255,255,255,.25);
  border:1px solid rgba(255,255,255,.25);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.avatar span{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:700;
}

.hello{
  color:#fff;
  line-height:1.05;
  min-width:0;
}
.hello .small{font-size:12px; opacity:.92}
.hello .name{
  font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.iconbtn{
  width:40px;height:40px;border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
  color:#fff;
}
.iconbtn svg{width:18px;height:18px; opacity:.95}

.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
}

.timecard{
  margin-top: 14px;
  padding: 14px 14px;
  text-align:center;
  position:absolute;
  left:18px; right:18px;
  bottom:-54px;
}

.timebig{
  font-size:26px;
  font-weight:800;
  color:var(--blue);
  letter-spacing:.3px;
}
.timedate{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}
.shift{
  margin-top:10px;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(60,92,255,.06);
  border:1px solid rgba(60,92,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#3146d9;
  font-weight:700;
}
.shift small{
  font-weight:700;
  color:#2232a9;
}

.banner{
  margin: 76px 18px 0;
  padding: 14px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(60,92,255,.15), rgba(60,92,255,.06));
  border: 1px solid rgba(60,92,255,.15);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow: 0 10px 22px rgba(20, 35, 90, .08);
}
.banner .text{
  font-size:12px;
  color:#2a388e;
  line-height:1.25;
}
.banner .text b{font-size:13px}
.banner .mascot{
  width:44px;height:44px;border-radius:14px;
  background: rgba(60,92,255,.20);
  display:flex;align-items:center;justify-content:center;
  color:#2a388e;
  font-weight:900;
}

.grid{
  margin: 14px 18px 90px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tile{
  padding: 14px 10px;
  border-radius: 18px;
  background: #fff;
  border:1px solid var(--stroke);
  box-shadow: 0 10px 18px rgba(20,35,90,.06);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:92px;
}
.tile .ico{
  width:38px;height:38px;border-radius:14px;
  background: rgba(60,92,255,.08);
  border: 1px solid rgba(60,92,255,.12);
  display:flex;align-items:center;justify-content:center;
  color:var(--blue);
}
.tile .label{
  font-size:12px;
  color:#1b2430;
  font-weight:700;
  text-align:center;
}
.tile .sub{
  margin-top:-6px;
  font-size:11px;
  color:var(--muted);
  text-align:center;
}

/* Bottom nav */
.nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:100%;
  max-width:420px;
  background:#fff;
  border-top:1px solid var(--stroke);
  box-shadow: 0 -12px 24px rgba(20,35,90,.06);
  padding:10px 10px 12px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index:20;
}
.nav .row{
  display:flex;
  justify-content:space-around;
  align-items:center;
  gap:10px;
}
.nav a{
  width:90px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:8px 6px;
  border-radius:16px;
  color:#7a859a;
  font-size:11px;
  font-weight:700;
}
.nav a svg{width:18px;height:18px}
.nav a.active{
  background: rgba(60,92,255,.08);
  color: var(--blue);
}

/* Pages */
.page{
  padding: 16px 18px 96px;
}
.h1{
  font-size:16px;
  font-weight:900;
  margin: 0 0 10px;
}
.p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{
  font-size:11px;
  color:var(--muted);
  text-align:left;
  font-weight:800;
  padding: 0 10px;
}
.table td{
  background:#fff;
  border:1px solid var(--stroke);
  padding:12px 10px;
  font-size:12px;
  border-radius:14px;
  vertical-align:top;
}
.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  border:1px solid;
  gap:6px;
  align-items:center;
}
.b-ok{background: rgba(33, 181, 111, .10); color:#137a4a; border-color: rgba(33, 181, 111, .25)}
.b-warn{background: rgba(255, 181, 0, .10); color:#8a5a00; border-color: rgba(255, 181, 0, .25)}
.b-bad{background: rgba(255, 71, 87, .10); color:#8d1321; border-color: rgba(255, 71, 87, .25)}
.btn{
  width:100%;
  border:none;
  border-radius: 18px;
  padding: 12px 14px;
  font-weight:900;
  font-size:13px;
  background: var(--blue);
  color:#fff;
  box-shadow: 0 14px 26px rgba(60,92,255,.25);
}
.btn:active{transform:translateY(1px)}
.btn.secondary{
  background:#fff;
  color: var(--blue);
  border:1px solid rgba(60,92,255,.25);
  box-shadow:none;
}
.btnrow{display:flex; gap:10px}
.btnrow .btn{flex:1}

.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background:#fff;
  outline:none;
  font-size:13px;
}
.label2{font-size:11px; font-weight:900; color:#51607a; margin:12px 0 6px}
.formcard{padding:14px}

/* Camera & signature */
.modal{
  position:fixed;
  inset:0;
  background: rgba(15, 20, 40, .45);
  display:none;
  align-items:flex-end;
  justify-content:center;
  z-index:50;
}
.modal.show{display:flex}
.sheet{
  width:100%;
  max-width:420px;
  background:#fff;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  padding: 14px 14px 16px;
  box-shadow: 0 -18px 40px rgba(0,0,0,.18);
}
.sheet .title{
  font-size:14px;
  font-weight:900;
  margin:4px 0 2px;
}
.sheet .sub{
  font-size:12px;
  color:var(--muted);
  margin:0 0 12px;
}
.video{
  width:100%;
  border-radius: 18px;
  border:1px solid var(--stroke);
  overflow:hidden;
  background:#000;
  aspect-ratio: 4/3;
}
.sig{
  pointer-events:auto;

  width:100%;
  border-radius: 18px;
  border:1px solid var(--stroke);
  background: #fff;
  height:180px;
  touch-action:none;
}
.hr{height:1px;background:rgba(16,31,60,.08); margin:12px 0}

/* Login page */
.login-wrap{
  min-height:100vh;
  background: radial-gradient(800px 600px at 50% -10%, rgba(60,92,255,.25), rgba(255,255,255,0) 60%),
              linear-gradient(180deg, #ffffff, var(--bg));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.login-card{
  width:100%;
  max-width:420px;
  border-radius: 26px;
  padding:18px;
  background:#fff;
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}
.brand .logo{
  width:44px;height:44px;border-radius:16px;
  background: linear-gradient(135deg, var(--blue), var(--blue3));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:1000;
  letter-spacing:.5px;
}
.brand .t{
  line-height:1.05;
}
.brand .t b{display:block; font-size:14px}
.brand .t small{color:var(--muted); font-weight:800}

.note{
  background: rgba(60,92,255,.06);
  border:1px dashed rgba(60,92,255,.25);
  padding:12px 12px;
  border-radius: 18px;
  font-size:12px;
  color:#2a388e;
  line-height:1.3;
  margin: 10px 0 12px;
}

/* Demo timer floating */
.demo-timer{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  top:10px;
  width: calc(100% - 24px);
  max-width:420px;
  z-index:99;
  pointer-events:none;
}
.demo-timer .pill{
  margin:0 auto;
  width:max-content;
  max-width:100%;
  background: rgba(0,0,0,.28);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding:8px 12px;
  border-radius: 999px;
  font-weight:900;
  font-size:12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

/* Avoid "keluar garis" */
.phone, .header, .nav, .page, .grid, .banner, .timecard, .login-card {max-width:100%}



/* ====== PURPLE LOGIN (LOCKED UI) ====== */
:root{
  --purple1:#5b2cff;
  --purple2:#7b35ff;
  --purple3:#a13bff;
}

.login-wrap{
  background:
    radial-gradient(900px 700px at 50% -10%, rgba(123,53,255,.30), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #ffffff, #f7f5ff);
}

.login-card{
  padding:0;
  overflow:hidden;
  border-radius: 28px;
}

/* phone-like purple top area */
.login-hero{
  position:relative;
  padding: 18px 18px 72px;
  background: linear-gradient(180deg, var(--purple1) 0%, var(--purple2) 55%, var(--purple3) 100%);
  color:#fff;
}
.login-hero h1{
  margin: 6px 0 14px;
  font-size:18px;
  font-weight:1000;
  text-align:center;
  letter-spacing:.2px;
}
.login-hero .inputs{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pill-input{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 10px 12px;
}
.pill-input input{
  border:none;
  outline:none;
  background:transparent;
  color:#fff;
  font-weight:800;
  width:100%;
  font-size:13px;
}
.pill-input input::placeholder{color:rgba(255,255,255,.75); font-weight:700}
.pill-ico{
  width:26px;height:26px;border-radius:999px;
  background: rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.22);
}
.pill-ico svg{width:14px;height:14px; opacity:.95}

/* purple login button */
.btn-login{
  margin-top:10px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.22);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}
.btn-login:active{transform:translateY(1px)}
.link-mini{
  margin-top:10px;
  text-align:center;
  font-size:11px;
  font-weight:800;
  opacity:.9;
}

/* wave separator */
.wave{
  position:absolute;
  left:0; right:0;
  bottom:-1px;
  height:86px;
  pointer-events:none;
}
.wave svg{width:100%;height:100%;display:block}

/* white bottom area */
.login-bottom{
  padding: 14px 18px 18px;
  background:#fff;
}
.center{
  text-align:center;
}
.small-muted{
  color: var(--muted);
  font-size:11px;
  font-weight:800;
}
.socials{
  display:flex;
  justify-content:center;
  gap:10px;
  padding:10px 0 12px;
}
.socialbtn{
  width:36px;height:36px;border-radius:12px;
  border:1px solid var(--stroke);
  background:#fff;
  box-shadow: 0 10px 18px rgba(20,35,90,.06);
  display:flex;align-items:center;justify-content:center;
}
.socialbtn svg{width:18px;height:18px}
.btn-signup{
  background: linear-gradient(135deg, var(--purple1), var(--purple3));
}

/* demo buttons keep visible & neat */
.demo-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.demo-row .btn{box-shadow:none}
.demo-row .btn.secondary{border-color: rgba(123,53,255,.22); color: var(--purple2)}


/* ===== LOGIN RAPAT MOBILE PATCH ===== */
html, body{
  margin:0;
  padding:0;
  min-height:100%;
  overflow-x:hidden;
  background:#f5f2ff;
}

.login-wrap{
  min-height:100dvh;
  padding:0;
  margin:0;
  display:flex;
  align-items:stretch;
  justify-content:center;
  background:#d9cff3;
}

.login-card{
  width:100%;
  max-width:420px;
  min-height:100dvh;
  margin:0 auto;
  border-radius:0;
  border:none;
  box-shadow:none;
  background:#ffffff;
}

.login-hero{
  padding: 18px 18px 72px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  min-height: 470px;
}

.login-hero h1{
  margin: 2px 0 22px;
  font-size: 20px;
  line-height: 1.1;
}

.login-hero .inputs{
  gap:14px;
}

.pill-input{
  min-height: 78px;
  padding: 0 16px;
  border-radius: 999px;
}

.pill-input input{
  font-size: 13px;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.pill-ico{
  flex: 0 0 42px;
  width:42px;
  height:42px;
}

.btn-login{
  min-height: 84px;
  border-radius: 999px;
  font-size: 16px;
}

.link-mini{
  margin-top: 2px;
  font-size: 13px;
}

.wave{
  height: 96px;
  bottom: -1px;
}

.login-bottom{
  margin-top: -1px;
  padding: 14px 18px 18px;
  background:#fff;
}

.note{
  margin-top: 0 !important;
}

.demo-row{
  margin-top: 10px;
}

.demo-row form{
  margin:0;
}

.demo-row .btn{
  min-height: 78px;
  border-radius: 999px;
  font-size: 14px;
  padding: 10px 12px;
}

.socials{
  padding: 10px 0 12px;
}

.btn-signup{
  min-height: 80px;
  border-radius: 999px;
  font-size: 16px;
}

.p{
  line-height:1.45;
}

@media (max-width: 420px){
  .login-card{
    max-width:100%;
  }
}

@media (max-width: 360px){
  .login-hero{
    padding: 16px 14px 64px;
    min-height: 430px;
  }

  .login-bottom{
    padding: 12px 14px 16px;
  }

  .pill-input{
    min-height: 70px;
    padding: 0 14px;
  }

  .btn-login,
  .demo-row .btn,
  .btn-signup{
    min-height: 72px;
    font-size: 14px;
  }

  .pill-input input{
    font-size: 12px;
  }
}


/* ===== PATCH REMOVE DEMO / SIGNUP ===== */
.login-bottom{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.login-bottom .note{
  margin-bottom:12px !important;
}


/* ===== PATCH ADMIN NAME + PEGAWAI ACTIONS ===== */
.topbar{
  align-items:flex-start;
}
.userchip{
  flex:1;
  min-width:0;
  align-items:flex-start;
}
.hello{
  flex:1;
  min-width:0;
  padding-top:2px;
}
.hello .small{
  display:block;
  font-size:12px;
  line-height:1.1;
}
.hello .name{
  display:block;
  white-space:normal;
  overflow:visible;
  text-overflow:unset;
  line-height:1.15;
  font-size:13px;
  max-width:100%;
  word-break:break-word;
}

@media (max-width:420px){
  .header{
    padding:16px 14px 84px;
  }
  .topbar{
    gap:10px;
  }
  .avatar{
    width:42px;
    height:42px;
  }
  .iconbtn{
    flex:0 0 40px;
  }
  .timecard{
    left:14px;
    right:14px;
  }
}

.table td.actions-cell{
  white-space:nowrap;
}
.action-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.action-btn{
  border:none;
  border-radius:12px;
  padding:8px 10px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.action-btn.edit{
  background:rgba(60,92,255,.10);
  color:#2d49de;
  border:1px solid rgba(60,92,255,.18);
}
.action-btn.delete{
  background:rgba(255,71,87,.10);
  color:#8d1321;
  border:1px solid rgba(255,71,87,.18);
}
@media (max-width:420px){
  .table{
    display:block;
    width:100%;
    overflow-x:auto;
  }
  .table th,
  .table td{
    white-space:nowrap;
  }
}


/* ===== PATCH SELFIE HISTORY + LOGIN MOTION ===== */
.thumb-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:8px;
  margin-top:8px;
}
.thumb-grid-sign{
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.thumb-card{
  padding:7px;
  border-radius:14px;
  border:1px solid rgba(60,92,255,.12);
  background:linear-gradient(180deg, rgba(60,92,255,.05), rgba(255,255,255,.98));
}
.thumb-link{
  display:block;
  border-radius:12px;
  overflow:hidden;
  background:#eef2ff;
}
.thumb-img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit:cover;
}
.thumb-sign{
  aspect-ratio: 16 / 7;
  object-fit:contain;
  background:#fff;
}
.thumb-cap{
  margin-top:6px;
  font-size:10px;
  font-weight:800;
  color:#44506b;
  text-align:center;
}
.mini-muted{
  font-size:11px;
  color:var(--muted);
}
.login-wrap{
  position:relative;
  overflow:hidden;
}
.login-bg-orb{
  position:fixed;
  border-radius:999px;
  filter: blur(16px);
  opacity:.42;
  pointer-events:none;
  z-index:0;
  animation: floatOrb 12s ease-in-out infinite;
}
.orb-a{
  width:180px;
  height:180px;
  top:-30px;
  left:-30px;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(160,59,255,.45) 55%, rgba(91,44,255,.12) 72%);
}
.orb-b{
  width:220px;
  height:220px;
  right:-70px;
  top:18%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.8), rgba(123,53,255,.42) 52%, rgba(91,44,255,.10) 72%);
  animation-duration: 16s;
}
.orb-c{
  width:160px;
  height:160px;
  left:10%;
  bottom:10%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(91,44,255,.30) 56%, rgba(91,44,255,.08) 74%);
  animation-duration: 14s;
}
.login-card{
  position:relative;
  z-index:1;
}
.login-hero{
  isolation:isolate;
}
.login-hero::before{
  content:'';
  position:absolute;
  inset:-20% -10% auto;
  height:220px;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.22), rgba(255,255,255,0) 64%);
  animation: heroGlow 7s ease-in-out infinite;
  pointer-events:none;
}
.login-sparkles{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.login-sparkles span{
  position:absolute;
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  box-shadow:0 0 12px rgba(255,255,255,.5);
  animation: sparkle 5.8s linear infinite;
}
.login-sparkles span:nth-child(1){ top:16%; left:14%; animation-delay:0s; }
.login-sparkles span:nth-child(2){ top:24%; right:18%; animation-delay:1.2s; }
.login-sparkles span:nth-child(3){ top:45%; left:9%; animation-delay:2.1s; }
.login-sparkles span:nth-child(4){ top:58%; right:11%; animation-delay:2.8s; }
.login-sparkles span:nth-child(5){ top:74%; left:50%; animation-delay:3.6s; }
.pill-input,
.btn-login,
.login-card,
.note{
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.login-card{
  animation: cardRise .8s ease both;
}
.pill-input:hover,
.pill-input.is-focus{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 16px 28px rgba(40, 10, 110, .18);
  background: rgba(255,255,255,.28);
}
.btn-login{
  position:relative;
  overflow:hidden;
}
.btn-login::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.12) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: shimmerLogin 3.8s ease-in-out infinite;
}
@keyframes floatOrb{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-16px,0) scale(1.06); }
}
@keyframes sparkle{
  0%{ transform: translateY(0) scale(.7); opacity:0; }
  10%{ opacity:.9; }
  50%{ transform: translateY(-18px) scale(1); opacity:1; }
  100%{ transform: translateY(-36px) scale(.5); opacity:0; }
}
@keyframes shimmerLogin{
  0%,100%{ transform: translateX(-120%); }
  45%,55%{ transform: translateX(120%); }
}
@keyframes heroGlow{
  0%,100%{ opacity:.35; transform: scale(1); }
  50%{ opacity:.65; transform: scale(1.08); }
}
@keyframes cardRise{
  from{ opacity:0; transform: translateY(18px) scale(.985); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .login-bg-orb,
  .login-hero::before,
  .login-sparkles span,
  .login-card,
  .btn-login::after{
    animation:none !important;
  }
}
