/* Split Screen Layout CSS for SICE Portal */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body.landing-split-layout {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

.landing-split-layout * {
  box-sizing: border-box;
}

.split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* LEFT PANEL */
.split-left {
  width: 45%;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: #ffffff;
}

.split-left-content {
  position: relative;
  z-index: 10;
  max-width: 500px;
  animation: fadeInLeft 1s ease-out;
}

.brand-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.split-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.split-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.split-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
  color: #ffffff;
}

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

.split-background-effects {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.effect-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: #38bdf8;
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: #818cf8;
  bottom: -50px;
  right: -50px;
}

/* RIGHT PANEL */
.split-right {
  width: 55%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  overflow-y: auto;
}

.split-right-content {
  width: 100%;
  max-width: 480px;
  animation: fadeInRight 1s ease-out;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.form-header p {
  color: #64748b;
  margin: 0;
  font-size: 1rem;
}

.modern-split-form .input-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.modern-split-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.modern-split-form input,
.modern-split-form select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: #0f172a;
  transition: all 0.3s;
}

.modern-split-form input:focus,
.modern-split-form select:focus {
  outline: none;
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .input-group {
  flex: 1;
}

.split-btn {
  width: 100%;
  padding: 1.1rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.primary-btn {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.primary-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(15, 23, 42, 0.4);
}

.primary-btn .arrow {
  margin-left: 8px;
  transition: transform 0.3s;
}

.primary-btn:hover .arrow {
  transform: translateX(5px);
}

.secondary-btn {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  padding: 1rem 2rem;
}

.secondary-btn:hover {
  background: #dbeafe;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2.5rem 0;
  color: #cbd5e1;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider span {
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.result-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.result-section .form-header {
  margin-bottom: 1.5rem;
}

.result-section .form-header h2 {
  font-size: 1.5rem;
}

.flex-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem;
  margin-bottom: 0 !important;
}

.flex-row input {
  flex: 1;
}

.flex-row .split-btn {
  width: auto;
}

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

.split-footer a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
}

.split-footer a:hover {
  text-decoration: underline;
}

/* INSTRUCTIONS & ALERTS */
.instructions {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
  font-size: 0.9rem;
}

.instructions.error {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

/* LOADING OVERLAY */
.premium-loading {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #0f172a;
  font-weight: 600;
  font-size: 1.1rem;
}

.premium-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-radius: 50%;
  border-top-color: #4f46e5;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

/* ANIMATIONS */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .split-left { width: 50%; padding: 3rem; }
  .split-right { width: 50%; padding: 3rem; }
  .split-title { font-size: 3rem; }
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }
  .split-left {
    width: 100%;
    min-height: 500px;
    padding: 3rem 2rem;
  }
  .split-right {
    width: 100%;
    padding: 3rem 2rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .flex-row {
    flex-direction: column !important;
  }
  .flex-row .split-btn {
    width: 100%;
  }
}
