:root {
  --primary: #3b82f6; /* blue-500 */
  --primary-light: #60a5fa; /* blue-400 */
  --primary-dark: #1d4ed8; /* blue-700 */
  --secondary: #1e40af; /* blue-800 */
  --background: #f8fafc; /* slate-50 */
  --foreground: #0f172a; /* slate-900 */
  --card: #ffffff;
  --card-foreground: #1e293b; /* slate-800 */
  --muted-foreground: #64748b; /* slate-500 */
  --border: #e2e8f0; /* slate-200 */
  --input: #f1f5f9; /* slate-100 */
  --ring: #3b82f6; /* blue-500 */
  --radius: 0.75rem;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
}

/* Mobile-first approach */
.login-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  background: var(--background);
}

.login-card {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-width: 100%;
  border: 1px solid var(--border);
}

.login-left {
  width: 100%;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.login-left::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  backdrop-filter: blur(10px);
}

.login-left::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
  backdrop-filter: blur(10px);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.brand-logo svg {
  margin-right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
}

.feature-list {
  display: none;
}

.login-left h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.login-left p {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.login-right {
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 0 var(--radius) var(--radius);
}

.login-header {
  margin-bottom: 1.5rem;
}

.login-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 400;
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--card-foreground);
  font-size: 0.875rem;
}

.form-control {
  height: 3.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 0 1rem 0 2.75rem;
  transition: all 0.2s;
  font-size: 0.875rem;
  width: 100%;
  background-color: var(--input);
  color: var(--card-foreground);
}

.form-control:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  outline: none;
}

.form-control::placeholder {
  color: var(--muted-foreground);
}

.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.form-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: 1rem;
  transition: color 0.2s;
}

.form-icon.prefix {
  left: 1rem;
}

.form-icon.suffix {
  right: 1rem;
  cursor: pointer;
}

.form-icon:hover {
  color: var(--primary);
}

.btn-login {
  height: 3.25rem;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  color: white;
  font-weight: 600;
  padding: 0 1.5rem;
  width: 100%;
  margin-top: 0.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.45);
}

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

.spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-loading .spinner {
  display: block;
}

.btn-loading .btn-text,
.btn-loading .btn-icon {
  opacity: 0;
}


.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 1px solid var(--input);
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.remember-me input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.remember-me input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 0.375rem;
  top: 0.125rem;
  width: 0.375rem;
  height: 0.75rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-me label {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.875rem;
}

.password-strength {
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background-color: #e2e8f0;
  position: relative;
  overflow: hidden;
  display: none;
}

.password-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background-color 0.3s;
  width: 0;
}

.password-feedback {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  display: none;
}

.copyright {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 1.25rem;
}

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #64748b;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.social-btn:hover {
  background-color: #e2e8f0;
  color: var(--primary);
  transform: translateY(-2px);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.divider::before {
  margin-right: 0.75rem;
}

.divider::after {
  margin-left: 0.75rem;
}

/* SweetAlert overrides */
.swal2-popup {
  font-family: 'Inter', sans-serif;
  border-radius: var(--radius);
}

.swal2-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.swal2-html-container {
  font-size: 0.875rem;
}

.swal2-styled.swal2-confirm {
  background: var(--primary);
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}

/* Decorative elements */
.shape-1, .shape-2, .shape-3 {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: rgba(59, 130, 246, 0.15);
  top: 10%;
  left: 15%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: rgba(99, 102, 241, 0.15);
  bottom: 10%;
  right: 10%;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: rgba(14, 165, 233, 0.15);
  top: 40%;
  right: 30%;
}

/* Tablet and desktop styles - mobile first approach */
@media (min-width: 640px) {
  .login-container {
    padding: 1rem;
  }
  
  .login-card {
    max-width: 450px;
  }
  
  .login-left, .login-right {
    padding: 2rem;
  }
  
  .login-left h1 {
    font-size: 1.75rem;
  }
  
  .login-left p {
    font-size: 1rem;
  }
  
  .auth-links {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .login-card {
    max-width: 800px;
    flex-direction: row;
    box-shadow: var(--shadow-lg);
  }
  
  .login-left {
    width: 50%;
    text-align: left;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 2.5rem;
  }
  
  .login-right {
    width: 50%;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 2.5rem;
  }
  
  .brand-logo {
    justify-content: flex-start;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
  }
  
  .brand-logo svg {
    width: 2rem;
    height: 2rem;
    margin-right: 0.75rem;
  }
  
  .login-left h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  
  .feature-list {
    display: block;
  }
  
  .login-header h2 {
    font-size: 1.75rem;
  }
  
  .login-header p {
    font-size: 1rem;
  }
  
  .shape-1 {
    width: 300px;
    height: 300px;
  }
  
  .shape-2 {
    width: 250px;
    height: 250px;
  }
  
  .shape-3 {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 1024px) {
  .login-card {
    max-width: 1000px;
  }
  
  .login-left, .login-right {
    padding: 3rem;
  }
}

/* Tailwind-inspired utility classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.hidden { display: none; }
.block { display: block; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-white { color: white; }
.text-gray-500 { color: #64748b; }
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.bg-white { background-color: white; }
.transition { transition: all 0.2s; }
.cursor-pointer { cursor: pointer; }
.hover:bg-primary-dark:hover { background-color: var(--primary-dark); } 

/* Feature list styles for desktop */
.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.feature-text {
  font-size: 0.875rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .feature-list {
    display: block;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
  }
}

/* Full screen adjustments */
@media (min-width: 1280px) {
  .login-card {
    max-width: 1200px;
  }
  
  .login-left {
    padding: 4rem;
  }
  
  .login-right {
    padding: 4rem;
  }
  
  .login-left h1 {
    font-size: 2.5rem;
  }
  
  .login-left p {
    font-size: 1.125rem;
  }
  
  .feature-list {
    margin-top: 3rem;
  }
  
  .feature-item {
    margin-bottom: 1.5rem;
  }
  
  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .feature-text {
    font-size: 1rem;
  }
} 