/* Auth Modals CSS - Đậu Đậu Quán */

/* Overlay nền */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}

/* Container modal */
.auth-modal {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 450px;
  max-height: 95vh;
  overflow-y: auto;
  transition: all 0.3s ease;
  transform: translateY(-50px);
  opacity: 1;
}

.auth-modal-overlay.active .auth-modal {
  transform: translateY(0);
}

/* Header modal */
.auth-modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.auth-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.auth-modal-close:hover {
  color: #f26522;
}

/* Nội dung modal */
.auth-modal-body {
  padding: 25px;
}

/* Form đăng nhập/đăng ký */
.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

.auth-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s;
}

.auth-form input:focus {
  border-color: #f26522;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.2);
  outline: none;
}

.auth-form .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.auth-form .form-check input {
  width: auto;
  margin-right: 8px;
}

.auth-form .form-check label {
  margin-bottom: 0;
  font-weight: normal;
}

.auth-form .btn-auth {
  background-color: #f26522;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-form .btn-auth:hover {
  background-color: #e55511;
}

/* Footer modal */
.auth-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.auth-modal-footer p {
  margin-bottom: 12px;
  color: #666;
}

.auth-modal-footer .social-login {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.auth-modal-footer .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.auth-modal-footer .facebook {
  background-color: #3b5998;
}

.auth-modal-footer .google {
  background-color: #db4437;
}

.auth-modal-footer .switch-form {
  color: #f26522;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-modal-footer .switch-form:hover {
  color: #e55511;
}

/* Hiển thị lỗi */
.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 5px;
  display: none;
}

.auth-form input.error {
  border-color: #dc3545;
}

.auth-form input.error:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Hiệu ứng loading */
.auth-form .btn-auth.loading {
  position: relative;
  color: transparent;
}

.auth-form .btn-auth.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive styles */
@media screen and (max-width: 576px) {
  .auth-modal {
    width: 95%;
  }
  
  .auth-modal-header {
    padding: 15px 20px;
  }
  
  .auth-modal-body {
    padding: 20px;
  }
  
  .auth-modal-footer {
    padding: 15px 20px;
  }
  
  .auth-form input {
    padding: 10px 12px;
  }
} 