/* Estilos modernos para a página de login */
:root {
  --primary-color: #c41e3a;
  --primary-dark: #a51930;
  --primary-light: #f8d7da;
  --secondary-color: #722f37;
  --secondary-dark: #5e262d;
  --secondary-light: #e9d2d5;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.15);
  --text-color: #333333;
  --text-muted: #6c757d;
}

body.login-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(135deg, rgb(255 0 43) 0%, rgb(99 0 12 / 90%) 100%), url('../images/cleaning-bg.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
  width: 100%;
  max-width: 420px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

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

.login-header {
  background: linear-gradient(212deg, #2f0000 0%, #7f000f 100%);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.login-header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.login-header p {
  margin-top: 0.8rem;
  opacity: 0.9;
  font-size: 1.1rem;
  position: relative;
}

.login-form {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: var(--secondary-color);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.form-group i {
  position: absolute;
  left: 1rem;
  top: 2.7rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.form-group input:focus + i {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(196, 30, 58, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.95rem;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.login-footer {
  text-align: center;
  padding: 0 2.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsividade */
@media (max-width: 576px) {
  .login-container {
    max-width: 90%;
    margin: 0 15px;
  }
  
  .login-header {
    padding: 2rem 1.5rem;
  }
  
  .login-header h1 {
    font-size: 1.8rem;
  }
  
  .login-header p {
    font-size: 1rem;
  }
  
  .login-form {
    padding: 2rem 1.5rem;
  }
  
  .form-group input {
    padding: 0.8rem 1rem 0.8rem 2.8rem;
  }
  
  .form-group i {
    left: 0.8rem;
    top: 2.6rem;
  }
  
  .btn {
    padding: 0.8rem 1.2rem;
  }
}
