@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  --accent-green: #059669;
  --accent-emerald: #10b981;
  --accent-teal: #0d9488;
  --accent-amber: #f59e0b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(226, 232, 240, 0.8);
  --input-border: #cbd5e1;
  --input-focus: #059669;
}

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background: #061e16;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 20px;
}

/* Ambient Animated Glowing Mesh */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.ambient-blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #059669 0%, #047857 60%, transparent 100%);
  top: -100px;
  left: -100px;
  animation-duration: 18s;
}

.ambient-blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #10b981 0%, #0d9488 60%, transparent 100%);
  bottom: -150px;
  right: -100px;
  animation-duration: 24s;
}

.ambient-blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #047857 0%, #064e3b 70%, transparent 100%);
  top: 40%;
  left: 45%;
  opacity: 0.22;
  animation-duration: 28s;
}

.ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.8;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Master Container */
.login-master-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1050px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  display: flex;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Left Brand Hero Section */
.login-hero {
  flex: 1.05;
  padding: 48px 42px;
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669, #34d399);
}

.hero-top {
  position: relative;
  z-index: 2;
}

.company-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.company-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.hero-logo-box {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.hero-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(0, 0, 0, 0.4);
}

.hero-logo-img {
  height: 42px;
  max-height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.hero-titles h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-titles h1 span {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Feature Highlights */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateX(4px);
}

.feature-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.badge-lpg {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-kondensat {
  background: rgba(13, 148, 136, 0.18);
  color: #2dd4bf;
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.badge-realtime {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.feature-texts h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.feature-texts p {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
}

.hero-footer-note {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right Form Section */
.login-form-area {
  flex: 0.95;
  padding: 48px 44px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.form-logo-box {
  margin-bottom: 20px;
  text-align: center;
}

.form-logo-img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
}

.form-header {
  margin-bottom: 24px;
  text-align: center;
}

.form-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.form-header p {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 400;
}

/* Form Styles */
.sipla-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.02em;
}

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

.input-icon-left {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.modern-input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  transition: all 0.25s ease;
  outline: none;
}

.modern-input:focus {
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.modern-input:focus + .input-icon-left,
.modern-input:focus ~ .input-icon-left {
  color: #059669;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toggle-password-btn:hover {
  color: #0f172a;
}

/* Login Submit Button */
.btn-submit-login {
  height: 48px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.45);
  transition: all 0.25s ease;
  margin-top: 6px;
}

.btn-submit-login:hover {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(5, 150, 105, 0.55);
}

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

.btn-submit-login i {
  font-size: 0.92rem;
  transition: transform 0.2s ease;
}

.btn-submit-login:hover i {
  transform: translateX(4px);
}

/* Form Helper & Footer */
.form-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-copy strong {
  color: #475569;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .login-master-wrapper {
    flex-direction: column;
    max-width: 500px;
  }

  .login-hero {
    padding: 32px 26px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-titles h1 {
    font-size: 1.7rem;
  }

  .feature-list {
    display: none;
  }

  .login-form-area {
    padding: 32px 26px;
  }
}
