.login {
  padding: 0;
  min-height: 100vh;
  display: flex;
  margin-top: 5rem;
}

.login-wrapper {
  background: var(--surface-color);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  min-height: 600px;
}

/* Left Side - Login Form */
.login-form-container {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.welcome-back h1 {
  color: var(--heading-color);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.welcome-back p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.login-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.stat-item .label {
  display: block;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Login Form */
.login-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  color: var(--heading-color);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label i {
  color: var(--accent-color);
  font-size: 1rem;
}

.form-control {
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: color-mix(in srgb, var(--surface-color), transparent 50%);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem
    color-mix(in srgb, var(--accent-color), transparent 75%);
  background: var(--surface-color);
}

.form-control.is-valid {
  border-color: #28a745;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.password-input-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  border-radius: 4px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.form-check-label {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 0.9rem;
  cursor: pointer;
}

.forgot-password {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: color-mix(in srgb, var(--accent-color), black 20%);
  text-decoration: underline;
}

/* Login Button */
.btn-login {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    color-mix(in srgb, var(--accent-color), black 20%) 100%
  );
  color: var(--contrast-color);
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px
    color-mix(in srgb, var(--accent-color), transparent 60%);
  color: var(--contrast-color);
}

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

/* Divider */
.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
}

.divider span {
  background: var(--surface-color);
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 0 20px;
  font-size: 0.9rem;
}

/* Social Login */
.social-login {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-social {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  background: var(--surface-color);
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-google:hover {
  border-color: #db4437;
  color: #db4437;
  background: color-mix(in srgb, #db4437, transparent 95%);
}

.btn-facebook:hover {
  border-color: #4267b2;
  color: #4267b2;
  background: color-mix(in srgb, #4267b2, transparent 95%);
}

/* Login Footer */
.login-footer {
  text-align: center;
}

.login-footer p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 20px;
}

.login-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

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

.help-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.help-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.help-links a:hover {
  color: var(--accent-color);
}

/* Right Side - Information Panel */
.login-info-panel {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    color-mix(in srgb, var(--accent-color), black 30%) 100%
  );
  color: var(--contrast-color);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-info-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.info-content {
  position: relative;
  z-index: 1;
}

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

.info-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.info-icon i {
  font-size: 2.5rem;
  color: var(--contrast-color);
}

.info-header h2 {
  color: var(--contrast-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.info-header p {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Features List */
.features-list {
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.2rem;
  color: var(--contrast-color);
}

.feature-content h4 {
  color: var(--contrast-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.feature-content p {
  color: color-mix(in srgb, var(--contrast-color), transparent 25%);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Testimonial */
.testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.quote-icon {
  text-align: center;
  margin-bottom: 15px;
}

.quote-icon i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial blockquote {
  color: var(--contrast-color);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-info strong {
  color: var(--contrast-color);
  font-weight: 600;
  display: block;
}

.author-info span {
  color: color-mix(in srgb, var(--contrast-color), transparent 30%);
  font-size: 0.85rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
  font-size: 0.9rem;
}

.trust-item i {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Forgot Password Modal */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 20px 30px;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.btn-close {
  filter: invert(1);
}

.forgot-password-content {
  padding: 30px;
  text-align: center;
}

.forgot-icon {
  width: 80px;
  height: 80px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.forgot-icon i {
  font-size: 2rem;
  color: var(--accent-color);
}

.forgot-password-content h4 {
  color: var(--heading-color);
  margin-bottom: 15px;
}

.forgot-password-content p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 30px;
  line-height: 1.6;
}

.forgot-form {
  margin-bottom: 25px;
}

.back-to-login a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.back-to-login a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 8rem;
  }

  .login-info-panel {
    display: none;
  }

  .login-form-container {
    padding: 40px 35px;
  }
}

@media (max-width: 768px) {
  .login {
    padding: 20px 0;
  }

  .login-wrapper {
    margin: 20px;
    border-radius: 20px;
  }

  .login-form-container {
    padding: 35px 25px;
  }

  .welcome-back h1 {
    font-size: 1.8rem;
  }

  .login-stats {
    gap: 15px;
    text-align: center;
    justify-content: center;
  }

  .social-login {
    flex-direction: column;
  }

  .help-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .login-form-container {
    padding: 30px 20px;
  }

  .welcome-back h1 {
    font-size: 1.6rem;
  }

  .welcome-back p {
    font-size: 1rem;
  }

  .form-control {
    padding: 12px 16px;
  }

  .btn-login {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .forgot-password-content {
    padding: 25px 20px;
  }
}

/* Loading Animation */
.btn-login.loading {
  pointer-events: none;
}

.btn-login.loading .btn-text {
  opacity: 0;
}

.btn-login.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--contrast-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Form validation feedback */
.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.8-.8-.8 1.84-1.84-.8-.8.8-.8L6.5 4.27z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8 2.4 2.4M8.2 5.8l-2.4 2.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
