

:root {
  --bg-dark: #0d0f14;
  --bg-soft: rgba(18,18,22,0.85);
  --coffee: #c07a3a;
  --coffee-light: #e0a96d;
  --coffee-glow: rgba(192,122,58,0.35);
  --border-soft: rgba(255,255,255,0.08);
  --text-muted: rgba(255,255,255,0.6);
  --radius: 18px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: flex-end;
  background: var(--bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

/* BACKGROUND IMAGE BLUR (ambil dari vibe kasir) */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
      linear-gradient(rgba(10,10,15,0.75), rgba(10,10,15,0.85)),
      url('../img/bg-caffe.jpg') center/cover no-repeat;
  filter: blur(4px);
  transform: scale(1.05);
  z-index: -2;
}

/* NOISE OVERLAY */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, var(--coffee-glow), transparent 60%);
  z-index: -1;
}

/* LOGIN CONTAINER */
.login-container {
  width: 460px;
  min-height: 100vh;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-soft);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--border-soft);
  box-shadow: -30px 0 60px rgba(0,0,0,0.6);
  animation: fadeSlide 0.8s ease forwards;
}

/* ANIMATION */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* LOGO */
.login-logo {
  width: 110px;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* TITLE */
.login-container h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, var(--coffee-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* INPUT GROUP */
.input-group {
  margin-bottom: 24px;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--coffee);
  transition: var(--transition);
}

.input-icon input {
  width: 100%;
  padding: 15px 18px 15px 52px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
  color: white;
  font-size: 14px;
  transition: var(--transition);
}

/* FOCUS EFFECT */
.input-icon input:focus {
  outline: none;
  border-color: var(--coffee);
  box-shadow: 0 0 0 2px rgba(192,122,58,0.2),
              0 0 30px var(--coffee-glow);
}

.input-icon input:focus ~ i {
  color: var(--coffee-light);
  transform: translateY(-50%) scale(1.1);
}

/* BUTTON */
.btn-login {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--coffee), #8b4513);
  color: white;
  transition: var(--transition);
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--coffee-glow);
}

.btn-login:active {
  transform: scale(0.96);
}

/* ERROR */
.error-message {
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,60,60,0.08);
  border: 1px solid rgba(255,60,60,0.25);
  font-size: 13px;
  text-align: center;
  color: #ff6b6b;
  min-height: 18px;
}

/* SCREEN READER ONLY */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 1024px) {
  .login-container {
    width: 420px;
    padding: 50px 40px;
  }
}

@media (max-width: 768px) {
  body {
    justify-content: center;
  }

  .login-container {
    width: 100%;
    max-width: 480px;
    min-height: auto;
    margin: 40px 20px;
    border-left: none;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 40px 25px;
  }

  .login-container h2 {
    font-size: 22px;
  }

  .btn-login {
    font-size: 13px;
  }
}
.login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -30px;
  margin-bottom: 30px;
}

/* =========================
   SAFARI iOS COMPATIBILITY FIX
========================= */

/* Fix viewport height drama iOS */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh; /* modern iOS fix */
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Fix backdrop blur Safari */
.sidebar,
.order-sidebar,
.page-content {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Fix blur background layer biar ga glitch */
body::before {
  will-change: transform;
  transform: translateZ(0) scale(1.03);
}

/* Fix sticky issue iOS */
.order-sidebar {
  position: -webkit-sticky;
  position: sticky;
}

/* Fix scroll container Safari */
.order-list {
  -webkit-overflow-scrolling: touch;
}

/* Fix button tap highlight iOS */
button,
.menu-card button,
.bayar-btn,
.qty-btn {
  -webkit-tap-highlight-color: transparent;
}

/* Fix select rendering iOS */
.input-group select {
  -webkit-appearance: none;
  appearance: none;
}

/* Prevent white bottom gap iOS */
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}