/* Modern Call Center Login CSS */
:root {
  /* Color palette */
  --primary-color: #3a86ff;
  --primary-dark: #2667cc;
  --secondary-color: #8338ec;
  --accent-color: #ff006e;
  --success-color: #38b000;
  --warning-color: #ffbe0b;
  --error-color: #ff3366;
  --text-primary: #333333;
  --text-secondary: #6b7280;
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --bg-dark: #111827;
  --border-light: #e5e7eb;
  
  /* Typography */
  --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Particle background */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Main login layout */
.login-wrapper {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding: 20px;
}

.login-container {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  width: 100%;
  display: flex;
  min-height: 600px;
}

/* Brand section */
.brand-container {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40%;
  position: relative;
  overflow: hidden;
}

.brand-container::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  top: -50%;
  left: -50%;
}

.brand-logo {
  height: 100px;
  width: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.brand-logo i {
  font-size: 50px;
  color: white;
}

.brand-container h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.brand-container h1 span {
  font-weight: 300;
  opacity: 0.8;
}

.tagline {
  font-size: 16px;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* Login form section */
.login-form-container {
  padding: 50px 40px;
  width: 60%;
  display: flex;
  flex-direction: column;
}

.login-header {
  margin-bottom: 30px;
  text-align: center;
}

.login-header h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Form elements */
.input-group {
  margin-bottom: 25px;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.15);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-secondary);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Login button */
.btn-login {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.btn-login span {
  z-index: 2;
  transition: all 0.3s ease;
  margin-right: 8px;
}

.btn-login i {
  margin-left: 8px;
  transform: translateX(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.btn-login:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.btn-login:hover i {
  transform: translateX(5px);
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.btn-login:hover::before {
  left: 100%;
}

/* Error message */
.error-message {
  background-color: rgba(255, 51, 102, 0.1);
  color: var(--error-color);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  animation: fadeIn 0.5s ease-in-out;
}

.error-message i {
  margin-right: 10px;
  font-size: 18px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* System info */
.system-info {
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Responsive design */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    min-height: auto;
  }
  
  .brand-container, 
  .login-form-container {
    width: 100%;
    padding: 40px 20px;
  }
  
  .brand-container {
    min-height: 200px;
  }
  
  .brand-logo {
    height: 70px;
    width: 70px;
    margin-bottom: 15px;
  }
  
  .brand-logo i {
    font-size: 35px;
  }
  
  .brand-container h1 {
    font-size: 28px;
  }
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.brand-logo {
  animation: float 6s ease-in-out infinite;
}

/* Particle animation */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
