/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  min-height: 100vh;
}

/* Back to Home Button */
.back-home {
  position: fixed;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  z-index: 100;
}

.back-home:hover {
  background-color: #333333;
  transform: translateX(-3px);
}

/* Main Container */
.login-container {
  display: flex;
  min-height: 100vh;
}

/* Left Side - Form */
.login-left {
  flex: 1;
  padding: 80px 60px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 450px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.form-subtitle {
  color: #666666;
  font-size: 1rem;
}

/* Form Elements */
.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #000000;
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: #666666;
  font-size: 1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #ffffff;
  color: #000000;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #000000;
}

.toggle-password {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #000000;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-password {
  color: #000000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.forgot-password:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 14px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

/* Loading State */
.btn-submit.loading {
  position: relative;
  color: transparent;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Divider */
.divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 43%;
  height: 1px;
  background-color: #e0e0e0;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background-color: #ffffff;
  padding: 0 15px;
  color: #666666;
  font-size: 0.9rem;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.btn-social {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-social:hover {
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-social i {
  font-size: 1.1rem;
}

.btn-google:hover {
  background-color: #f5f5f5;
}

.btn-facebook:hover {
  background-color: #f5f5f5;
}

/* Signup Prompt */
.signup-prompt {
  text-align: center;
  color: #666666;
  font-size: 0.95rem;
}

.signup-prompt a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #000000;
}

.signup-prompt a:hover {
  opacity: 0.7;
}

/* Right Side - Branding */
.login-right {
  flex: 1.2;
  background-color: #000000;
  color: #ffffff;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-right::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
}

.brand-text h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.brand-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 50px;
  opacity: 0.9;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #ffffff;
}

.stat-item p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Testimonial */
.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid #ffffff;
}

.quote-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author .author-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 3px;
}

.testimonial-author .author-role {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666666;
  transition: color 0.3s ease;
  padding: 5px;
  line-height: 1;
}

.close-modal:hover {
  color: #000000;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.modal-content p {
  color: #666666;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 350px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background-color: #d32f2f;
}

.toast.success {
  background-color: #2e7d32;
}

/* Validation States */
.input-wrapper input.error {
  border-color: #d32f2f;
}

.input-wrapper input.success {
  border-color: #2e7d32;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-left {
    padding: 60px 40px;
  }

  .login-right {
    padding: 60px 40px;
  }

  .brand-text h2 {
    font-size: 2rem;
  }

  .stats {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .back-home {
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .login-container {
    flex-direction: column-reverse;
  }

  .login-left {
    padding: 40px 30px;
  }

  .login-right {
    padding: 40px 30px;
    min-height: 400px;
  }

  .brand-content {
    text-align: center;
  }

  .brand-text h2 {
    font-size: 1.8rem;
  }

  .brand-text p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .stats {
    margin-bottom: 40px;
  }

  .form-header h1 {
    font-size: 2.5rem;
  }

  .form-header h2 {
    font-size: 1.6rem;
  }

  .toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }

  .modal-content {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .login-left {
    padding: 30px 20px;
  }

  .login-right {
    padding: 30px 20px;
  }

  .form-header h1 {
    font-size: 2rem;
  }

  .form-header h2 {
    font-size: 1.4rem;
  }

  .brand-text h2 {
    font-size: 1.5rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .input-wrapper input {
    padding: 12px 12px 12px 40px;
  }

  .btn-submit,
  .btn-social {
    padding: 12px;
    font-size: 0.95rem;
  }

  .modal-content {
    padding: 25px;
  }
}
/* Center the Toast Notification */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9); /* Centered and slightly smaller */
  padding: 20px 40px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  font-weight: 500;
  min-width: 300px;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
