/**
 * SpeedyCRM Login Page CSS
 * 
 * This file contains styling for the login page.
 */

.login-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--body-bg);
}

.login-sidebar {
  display: none;
  width: 40%;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.login-sidebar-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-sidebar-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.login-sidebar-logo {
  margin-bottom: 2rem;
}

.login-sidebar-logo img {
  max-height: 60px;
}

.login-sidebar-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.login-sidebar-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.login-sidebar-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.login-sidebar-features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.login-sidebar-features li:before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-right: 0.75rem;
  font-size: 0.875rem;
}

.login-form-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.login-form-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-form-logo img {
  max-height: 60px;
}

.login-form-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-form-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  text-align: center;
}

.login-form {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

.login-form-group {
  margin-bottom: 1.5rem;
}

.login-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.login-form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-form-control:focus {
  border-color: var(--primary-light);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.login-form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.login-form-check-input {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.login-form-check-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.login-form-forgot {
  font-size: 0.875rem;
  text-align: right;
}

.login-form-forgot a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-form-forgot a:hover {
  text-decoration: underline;
}

.login-form-submit {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.login-form-submit:hover {
  background-color: var(--primary-dark);
}

.login-form-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.login-form-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-form-footer a:hover {
  text-decoration: underline;
}

.login-language-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
}

.login-language-selector select {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  background-color: white;
  color: var(--gray-700);
}

/* Responsive styles */
@media (min-width: 992px) {
  .login-sidebar {
    display: block;
  }
  
  .login-form-container {
    width: 60%;
  }
  
  .login-form-logo {
    display: none;
  }
}
