/* ============================================================
   POS SUPLINDO — LOGIN PAGE
   Minimalist, Clean, Glassmorphism Design
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   LAYOUT — Split Screen
   ============================================================ */

.login-page {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Full background image */
.login-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

/* ============================================================
   LEFT — Branding Area
   ============================================================ */

.login-branding {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: #fff;
}

.brand-content {
  max-width: 520px;
}

.brand-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.8;
}

.brand-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.65;
  max-width: 360px;
}

.brand-footer {
  position: absolute;
  bottom: 40px;
  left: 60px;
}

.brand-footer p {
  font-size: 13px;
  opacity: 0.5;
}

.brand-footer a {
  color: #fb923c;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.brand-footer a:hover {
  opacity: 0.8;
}

/* ============================================================
   RIGHT — Login Card (Glassmorphism)
   ============================================================ */

.login-card {
  position: relative;
  z-index: 2;
  width: 420px;
  min-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-card-inner {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* ============================================================
   CARD HEADER
   ============================================================ */

.card-header {
  text-align: center;
  margin-bottom: 36px;
}

/* Mobile brand hidden on desktop */
.mobile-brand {
  display: none;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.card-icon .fa {
  color: #fff;
  font-size: 26px;
}

.card-header h3 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.card-header p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   FORM
   ============================================================ */

.form-group {
  position: relative;
  margin-bottom: 16px;
}

.form-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 15px;
  z-index: 2;
  transition: color 0.25s;
}

.form-group:focus-within .input-icon {
  color: #fb923c;
}

.form-control {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

.form-control:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-control:focus {
  border-color: #f97316;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.btn-login {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #0f1e47);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.4);
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}

/* ============================================================
   RESPONSIVE — Tablet & Mobile
   ============================================================ */

@media (max-width: 991px) {
  .login-page {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .login-branding {
    display: none;
  }

  .mobile-brand {
    display: block;
    text-align: center;
    margin-bottom: 28px;
  }

  .mobile-brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    margin: 0 0 2px 0;
    line-height: 1.1;
  }

  .mobile-brand-subtitle {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
  }

  .login-card {
    width: 100%;
    min-width: 0;
    padding: 24px;
  }

  .login-card-inner {
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
  }

  .card-header h3 {
    font-size: 20px;
  }

  .form-control {
    height: 48px;
    font-size: 15px;
  }

  .btn-login {
    height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 16px;
  }

  .login-card-inner {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
  }

  .card-icon .fa {
    font-size: 22px;
  }

  .card-header h3 {
    font-size: 18px;
  }

  .card-header {
    margin-bottom: 28px;
  }

  .form-control {
    height: 46px;
    font-size: 14px;
    padding-left: 40px;
  }

  .form-group .input-icon {
    left: 14px;
    font-size: 14px;
  }

  .btn-login {
    height: 46px;
    font-size: 14px;
  }
}
