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

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #ec4899;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e1b4b;
  --panel-gradient: linear-gradient(135deg, rgba(79, 70, 229, 0.8), rgba(236, 72, 153, 0.8));
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --input-bg: rgba(0, 0, 0, 0.2);
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient-start);
  background-image: radial-gradient(circle at top right, var(--bg-gradient-end), var(--bg-gradient-start));
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

/* Decorative Background Elements */
body::before, body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

body::before {
  width: 500px;
  height: 500px;
  background: rgba(79, 70, 229, 0.3);
  top: -150px;
  left: -150px;
  animation: float 10s ease-in-out infinite alternate;
}

body::after {
  width: 400px;
  height: 400px;
  background: rgba(236, 72, 153, 0.2);
  bottom: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.1); }
}

/* Split Panel Container */
.premium-login-container {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.8s ease-out;
  overflow: hidden;
}

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

/* Left Panel */
.left-panel {
  flex: 1;
  padding: 4rem 3rem;
  background: var(--panel-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.left-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/spandan-logo.png') center/cover no-repeat;
  opacity: 0.05;
  filter: grayscale(100%);
  z-index: 0;
}

.left-panel-content {
  position: relative;
  z-index: 1;
}

.left-panel .login-logo {
  width: 100px;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  background: white;
  padding: 5px;
}

.left-panel h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.left-panel p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.feature-list i {
  margin-right: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px;
  border-radius: 50%;
}

/* Right Panel */
.right-panel {
  flex: 1;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
}

.right-panel h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.right-panel .subtitle {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control, .select2-container .select2-choice {
  width: 100%;
  background: var(--input-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  padding: 1rem 1rem 1rem 3rem !important;
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  height: auto !important;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

/* Custom placeholder styling for WebKit/Blink */
.form-control::placeholder {
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

.form-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: color 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.form-control:focus + .form-icon {
  color: var(--primary-color);
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 10px;
}

.custom-checkbox label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.custom-checkbox input[type="checkbox"] {
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
}

/* Submit Button */
.btn-primary {
  width: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 12px;
  padding: 1rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  margin-top: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

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

/* Alert/Error Messages */
.alert-message {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
  text-align: center;
}

/* Responsive */
@media (max-width: 850px) {
  .premium-login-container {
    flex-direction: column;
    margin: 2rem 1rem;
    max-width: 500px;
  }
  
  .left-panel {
    padding: 3rem 2rem;
  }
  
  .right-panel {
    padding: 3rem 2rem;
  }
}

/* Modal Styling */
.modal-content {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: white;
  border-radius: 16px;
}
.modal-header {
  border-bottom: 1px solid var(--glass-border);
}
.modal-title {
  color: white;
}
.modal-body label {
  color: var(--text-secondary);
}
.modal .form-control {
  padding: 0.75rem 1rem !important; 
}
