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

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, hsla(152,100%,76%,0.4) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(210,100%,82%,0.4) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(340,100%,86%,0.4) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(40,100%,82%,0.4) 0px, transparent 50%);
  position: relative;
}

body::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.04"/></svg>');
  pointer-events: none;
  z-index: 0;
}

.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px; 
  padding: 2.5rem 2.5rem;
  width: 100%; max-width: 420px;
  box-shadow: 
    0 10px 40px -10px rgba(0,0,0,0.08),
    0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand { text-align: center; margin-bottom: 2rem; }
.brand h1 { 
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 0.5rem;
  color: #0f172a;
  display: flex; align-items: center; justify-content: center;
}
.tenant-name {
  color: #0f172a; font-weight: 800; font-size: 1.8rem; letter-spacing: -0.8px; margin-bottom: 0.5rem;
}
.brand-core { 
  color: #0f172a;
} 
.brand-onex { 
  /* Styles are inline for typography */
} 
.brand p { color: #64748b; font-size: 0.95rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;}

.form-group { margin-bottom: 1.5rem; }
label {
  display: block; color: #334155;
  font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem;
}
.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 1.1rem; z-index: 5; transition: 0.3s ease;
}
.form-control {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px; padding: 0.9rem 1rem 0.9rem 2.8rem;
  color: #0f172a; font-size: 0.95rem; font-weight: 500; width: 100%;
  transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.01); outline: none;
}
.form-control:focus { 
  border-color: #10b981; 
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); 
}
.form-control:focus + .input-icon, .input-wrap:focus-within .input-icon { color: #10b981; }
.form-control::placeholder { color: #94a3b8; font-weight: 400; }

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn-login {
  width: 100%; padding: 0.9rem;
  background: #009a44;
  border: none; border-radius: 10px;
  color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 154, 68, 0.25);
}
.btn-login:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 25px rgba(0, 154, 68, 0.35); 
  background: #008239;
}

.btn-demo {
  width: 100%; padding: 0.9rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #475569; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.btn-demo:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.alert-error {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 14px; padding: 1rem; color: #dc2626;
  font-size: 0.95rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 500;
}
.alert-success {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 14px; padding: 1rem; color: #16a34a;
  font-size: 0.95rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 500;
}

.forgot-pass { text-align: center; margin-top: 1.5rem; }
.forgot-pass a { color: #64748b; text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: 0.3s ease; }
.forgot-pass a:hover { color: #009a44; }

.footer-text { text-align: center; color: #94a3b8; font-size: 0.85rem; margin-top: 3rem; font-weight: 500; }

/* Demo Request Specific Styles */
.demo-container {
  display: flex;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px; 
  width: 100%; max-width: 1000px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.demo-info {
  flex: 1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(0, 154, 68, 0.1));
  padding: 3.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
}

.demo-form-wrap {
  flex: 1;
  padding: 3.5rem;
  background: transparent;
}

.feature-list {
  list-style: none;
  margin-top: 2.5rem;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-icon {
  background: #009a44;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 154, 68, 0.25);
}

.feature-text h3 {
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.feature-text p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 860px) {
  .demo-container {
    flex-direction: column;
    max-width: 500px;
  }
  .demo-info {
    padding: 2.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  }
  .demo-form-wrap {
    padding: 2.5rem;
  }
}
