:root {
  --primary-color: #696cff;
  --primary-hover: #5f61e6;
  --primary-light: rgba(105, 108, 255, 0.08);
  --dark-bg: #090d16;
  --text-dark: #32325d;
  --text-muted: #8e9ba5;
  --border-color: #e2e8f0;
  --focus-shadow: rgba(105, 108, 255, 0.15);
  --radius-lg: 12px;
  --radius-xl: 20px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Public Sans', sans-serif;
  background-color: #f8fafc;
  overflow-x: hidden;
  min-height: 100vh;
}

.login-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* Left Branding Panel */
.login-brand-panel {
  flex: 1.2;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e1b4b 50%, #311042 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem;
}

/* Background glow blobs */
.login-brand-panel::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(105, 108, 255, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* Subtle grid overlay for tech look */
.login-brand-panel-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  opacity: 0.8;
}

.brand-panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-width: 600px;
}

.brand-logo-wrapper {
  margin-bottom: 2.5rem;
}

.brand-logo {
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.75px;
  margin-bottom: 1rem;
}

.brand-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Inspirational Quote Box */
.inspiration-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.inspiration-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.inspiration-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #696cff, #818cf8);
}

.inspiration-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.inspiration-icon {
  color: #818cf8;
  font-size: 1.25rem;
}

.inspiration-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #818cf8;
}

.quote-mark {
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 7.5rem;
  color: rgba(255, 255, 255, 0.03);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.quote-text {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #f1f5f9;
  margin: 0 0 1.25rem 0;
  font-style: italic;
  letter-spacing: 0.2px;
}

.quote-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-author::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1.5px;
  background-color: #475569;
}

.brand-footer {
  margin-top: auto;
  padding-top: 2rem;
}

.text-muted-custom {
  color: #64748b;
  font-size: 0.85rem;
}

/* Right Form Panel */
.login-form-panel {
  flex: 0.8;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.02);
}

.login-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(105, 108, 255, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(105, 108, 255, 0.01) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.login-card-wrapper {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-card-header {
  margin-bottom: 2rem;
}

.login-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

.mobile-logo-wrapper {
  display: inline-block;
}

.mobile-logo {
  height: 55px;
  object-fit: contain;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Custom Form Layout Elements */
.form-group {
  position: relative;
}

.form-label-custom {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 0.6rem;
}

.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.input-group-custom:focus-within {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--focus-shadow);
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.3rem;
  color: #94a3b8;
  transition: color 0.2s ease;
  z-index: 5;
  pointer-events: none;
}

.form-control-custom {
  width: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  font-size: 0.95rem;
  color: #334155;
  outline: none;
}

.form-control-custom::placeholder {
  color: #cbd5e1;
}

/* Password Input Adjustments */
.input-group-custom .form-control-custom {
  padding-right: 2.85rem;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: var(--primary-color);
}

.input-group-custom:focus-within .input-icon {
  color: var(--primary-color);
}

.input-group-custom:focus-within .password-toggle-btn {
  color: #64748b;
}

/* Button styles */
.btn-login-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(105, 108, 255, 0.25);
  margin-top: 2rem;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(105, 108, 255, 0.35);
  background: linear-gradient(135deg, #7c3aed 0%, var(--primary-color) 100%);
}

.btn-login-submit:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(105, 108, 255, 0.2);
}

/* Alerts and Validations */
.input-group-custom:has(.is-invalid) {
  border-color: #ef4444 !important;
}

.input-group-custom:has(.is-invalid):focus-within {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.invalid-feedback-custom {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.alert {
  border-radius: var(--radius-lg);
  border: none;
  font-size: 0.9rem;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.06);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.15);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.06);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.15);
}

.alert .btn-close {
  margin-left: auto;
  padding: 0;
  font-size: 0.85rem;
  background-size: 0.75em;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness */
@media (max-width: 1200px) {
  .login-brand-panel {
    padding: 3.5rem;
  }
  .brand-title {
    font-size: 1.95rem;
  }
  .login-form-panel {
    padding: 3rem;
  }
}

@media (max-width: 991.98px) {
  .login-brand-panel {
    display: none;
  }
  .login-form-panel {
    flex: 1;
    background: radial-gradient(circle at 50% 50%, rgba(105, 108, 255, 0.03) 0%, transparent 80%),
                #f8fafc;
    padding: 2rem;
  }
  .login-card-wrapper {
    background: #ffffff;
    padding: 2.75rem 2.25rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04), 0 5px 15px rgba(15, 23, 42, 0.02);
    border: 1px solid #f1f5f9;
  }
}
