/* ===================================
   LOGIN - SISTEMA POS RESTAURANTE
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 700px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: 20px;
}

/* ===== LEFT SIDE ===== */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 50px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-brand {
  text-align: center;
  margin-bottom: 30px;
}

.login-brand i {
  font-size: 60px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.login-brand h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-brand p {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 300;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateX(10px);
}

.feature i {
  font-size: 32px;
  opacity: 0.9;
  min-width: 40px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.feature p {
  font-size: 14px;
  opacity: 0.8;
  font-weight: 300;
}

/* ===== RIGHT SIDE ===== */
.login-right {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 100%;
  max-width: 450px;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header i {
  font-size: 48px;
  color: #667eea;
  margin-bottom: 20px;
}

.login-header h2 {
  font-size: 28px;
  color: #2d3748;
  margin-bottom: 10px;
  font-weight: 700;
}

.login-header p {
  font-size: 14px;
  color: #718096;
  font-weight: 400;
}

/* ===== ALERTS ===== */
.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-danger {
  background: #fee;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.alert-warning {
  background: #fffbeb;
  color: #c05621;
  border: 1px solid #fbd38d;
}

.alert i {
  font-size: 18px;
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #718096;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #667eea;
}

/* ===== FORM OPTIONS ===== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #4a5568;
}

.checkbox input {
  width: auto;
  cursor: pointer;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #764ba2;
}

/* ===== BUTTON ===== */
.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== FOOTER ===== */
.login-footer {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.login-footer p {
  font-size: 13px;
  color: #718096;
  margin-bottom: 15px;
  font-weight: 500;
}

.demo-users {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #4a5568;
}

.demo-users span {
  background: #f7fafc;
  padding: 8px 15px;
  border-radius: 6px;
}

.demo-users strong {
  color: #667eea;
}

.login-info {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: #a0aec0;
}

/* ===== LOADING ===== */
.btn-login.loading span {
  display: none;
}

.btn-login.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .login-left {
    display: none;
  }

  .login-container {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .login-right {
    padding: 40px 30px;
  }

  .login-header h2 {
    font-size: 24px;
  }

  .login-brand h1 {
    font-size: 28px;
  }
}
