/* ========================================================
   JOM PLUS - PUSKESMAS KECAMATAN KALIDERES
   Modern Authentication Design System
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #0c1f38;
  --bg-card: rgba(18, 38, 68, 0.85);
  --bg-card-hover: rgba(26, 52, 92, 0.90);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --border-highlight: rgba(56, 189, 248, 0.45);
  
  --primary-cyan: #38bdf8;
  --primary-blue: #0284c7;
  --success-green: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);
  --warning-amber: #f59e0b;
  --danger-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body.login-page-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.22) 0%, transparent 45%),
    linear-gradient(180deg, rgba(12, 31, 56, 0.88) 0%, rgba(14, 38, 68, 0.92) 100%),
    url('../images/bg3.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Glassmorphism Auth Container */
.auth-wrapper {
  width: 100%;
  max-width: 960px;
  margin: auto;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: all 0.3s ease;
}

.auth-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(56, 189, 248, 0.2);
}

/* Left Brand Panel */
.auth-brand-side {
  flex: 1.1;
  padding: 48px 40px;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.25) 0%, rgba(15, 23, 42, 0.5) 100%);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.auth-brand-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #10b981);
}

.brand-header-block {
  text-align: center;
}

.auth-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
}

.auth-logo-img:hover {
  transform: scale(1.05) rotate(2deg);
}

.brand-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 12px;
}

.brand-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 24px;
}

.brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.brand-features li {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-features li i {
  color: #10b981;
  font-size: 14px;
}

.brand-footer-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 24px;
  text-align: center;
}

/* Right Form Panel */
.auth-form-side {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(11, 23, 42, 0.4);
}

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

.form-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.form-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Alert Message */
.auth-alert {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Form Groups */
.form-group-custom {
  margin-bottom: 20px;
}

.form-label-custom {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 16px;
  color: #38bdf8;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-custom {
  width: 100%;
  height: 48px;
  background: rgba(12, 25, 45, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 45px 10px 46px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s ease;
}

.input-custom:focus {
  outline: none;
  background: rgba(15, 32, 58, 0.9);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.input-custom::placeholder {
  color: #64748b;
  font-size: 13.5px;
}

/* Password Toggle Icon */
.btn-toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-toggle-pw:hover {
  color: #38bdf8;
}

/* Submit Button */
.btn-auth-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  margin-top: 10px;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
}

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

/* Back Link */
.auth-footer-actions {
  margin-top: 24px;
  text-align: center;
}

.btn-back-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.btn-back-dashboard:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .auth-card {
    flex-direction: column;
    max-width: 480px;
  }
  
  .auth-brand-side {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 32px 24px;
  }
  
  .auth-logo-img {
    width: 84px;
    height: 84px;
  }
  
  .brand-title {
    font-size: 26px;
  }
  
  .auth-form-side {
    padding: 32px 24px;
  }
}
